/* ==========================================================
   ThunderPixels v2
   Components
========================================================== */


/* ==========================================================
   BUTTONS
========================================================== */

.btn {

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: .6rem;

    padding: 14px 28px;

    font-size: .95rem;
    font-weight: var(--fw-semibold);

    border-radius: var(--radius-full);

    cursor: pointer;

    transition: var(--transition);

    user-select: none;

}

.btn-primary {

    background: var(--color-primary);
    color: #111;

}

.btn-primary:hover {

    transform: translateY(-3px);

    background: var(--color-primary-dark);

    box-shadow: var(--shadow-md);

}

.btn-secondary {

    border: 1px solid var(--color-border);

    color: var(--color-text);

    background: transparent;

}

.btn-secondary:hover {

    border-color: var(--color-primary);

    color: var(--color-primary);

}


/* ==========================================================
   SECTION TITLE
========================================================== */

.section-header {

    text-align: center;

    max-width: 760px;

    margin: 0 auto 70px;

}

.section-tag {

    display: inline-block;

    padding: 8px 16px;

    border-radius: var(--radius-full);

    background: rgba(245,194,66,.08);

    border: 1px solid rgba(245,194,66,.15);

    color: var(--color-primary);

    font-size: .85rem;

    font-weight: var(--fw-semibold);

    margin-bottom: 18px;

}

.section-title {

    font-size: clamp(2rem,5vw,3.5rem);

    margin-bottom: 20px;

}

.section-description {

    font-size: 1.05rem;

    color: var(--color-text-light);

}


/* ==========================================================
   CARDS
========================================================== */

.card {

    background: var(--color-surface);

    border: 1px solid var(--color-border);

    border-radius: var(--radius-lg);

    padding: 32px;

    transition: var(--transition);

}

.card:hover {

    transform: translateY(-8px);

    border-color: var(--color-primary);

    box-shadow: var(--shadow-lg);

}


/* ==========================================================
   GRID
========================================================== */

.grid {

    display: grid;

    gap: 30px;

}

.grid-2 {

    grid-template-columns: repeat(2,1fr);

}

.grid-3 {

    grid-template-columns: repeat(3,1fr);

}

.grid-4 {

    grid-template-columns: repeat(4,1fr);

}


/* ==========================================================
   GLASS EFFECT
========================================================== */

.glass {

    background: rgba(255,255,255,.04);

    backdrop-filter: blur(18px);

    -webkit-backdrop-filter: blur(18px);

    border: 1px solid rgba(255,255,255,.08);

}


/* ==========================================================
   BADGE
========================================================== */

.badge {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 8px 18px;

    border-radius: var(--radius-full);

    background: rgba(245,194,66,.08);

    color: var(--color-primary);

    font-size: .85rem;

    font-weight: var(--fw-semibold);

}


/* ==========================================================
   DIVIDER
========================================================== */

.divider {

    width: 100%;

    height: 1px;

    background: var(--color-border);

}


/* ==========================================================
   ICON WRAPPER
========================================================== */

.icon-box {

    width: 64px;

    height: 64px;

    border-radius: 18px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: rgba(245,194,66,.08);

    border: 1px solid rgba(245,194,66,.15);

    margin-bottom: 24px;

}


/* ==========================================================
   TEXT HELPERS
========================================================== */

.text-primary {

    color: var(--color-primary);

}

.text-light {

    color: var(--color-text-light);

}


/* ==========================================================
   SPACING HELPERS
========================================================== */

.mt-1 {

    margin-top: 1rem;

}

.mt-2 {

    margin-top: 2rem;

}

.mt-3 {

    margin-top: 3rem;

}

.mb-1 {

    margin-bottom: 1rem;

}

.mb-2 {

    margin-bottom: 2rem;

}

.mb-3 {

    margin-bottom: 3rem;

}

/* ==========================================================
   NAVBAR
========================================================== */

.navbar {

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 1000;

    transition: .35s ease;

    background: transparent;

}

.navbar.scrolled {

    background: rgba(11,11,13,.95);

    backdrop-filter: blur(18px);

    -webkit-backdrop-filter: blur(18px);

    border-bottom: 1px solid rgba(255,255,255,.06);

}

.navbar__container {

    display: flex;

    align-items: center;

    justify-content: space-between;

    height: 90px;

}


/* ==========================================================
   LOGO
========================================================== */
/* ==========================================================
   LOGO
========================================================== */

.navbar__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-size: 1.7rem;
    font-weight: var(--fw-extrabold);
    color: var(--color-text);
}

.navbar__logo-icon {
    width: 34px;
    height: 34px;
    display: block;
    flex-shrink: 0;
    transition: transform .3s ease;
}

.navbar__logo:hover .navbar__logo-icon {
    transform: rotate(-8deg) scale(1.08);
}

.navbar__logo span {
    color: var(--color-primary);
    line-height: 1;
}


/* ==========================================================
   DESKTOP MENU
========================================================== */

.navbar__nav {

    display: flex;

}

.navbar__menu {

    display: flex;

    align-items: center;

    gap: 2rem;

}

.navbar__link {

    position: relative;

    color: var(--color-text-light);

    font-weight: var(--fw-medium);

    transition: var(--transition);

}

.navbar__link:hover {

    color: var(--color-primary);

}

.navbar__link.active {

    color: var(--color-primary);

}


/* Animated underline */

.navbar__link::after {

    content: "";

    position: absolute;

    left: 0;

    bottom: -8px;

    width: 0;

    height: 2px;

    background: var(--color-primary);

    transition: .3s ease;

}

.navbar__link:hover::after,

.navbar__link.active::after {

    width: 100%;

}


/* ==========================================================
   CTA
========================================================== */

.navbar__cta {

    margin-left: 2rem;

}


/* ==========================================================
   HAMBURGER
========================================================== */

.navbar__toggle {

    display: none;

    flex-direction: column;

    justify-content: center;

    gap: 6px;

    width: 48px;

    height: 48px;

}

.navbar__toggle span {

    width: 28px;

    height: 2px;

    background: white;

    transition: .35s ease;

}

/* ==========================================
   Hamburger Animation
========================================== */

.navbar__toggle.active span:nth-child(1) {

    transform: rotate(45deg) translateY(11px);

}

.navbar__toggle.active span:nth-child(2) {

    opacity: 0;

}

.navbar__toggle.active span:nth-child(3) {

    transform: rotate(-45deg) translateY(-11px);

}


/* ==========================================================
   MOBILE MENU
========================================================== */

.mobile-menu {

    position: absolute;

    top: 100%;

    left: 0;

    width: 100%;

    background: #111114;

    border-top: 1px solid rgba(255,255,255,.05);

    padding: 2rem;

    display: none;

}

.mobile-menu.active {

    display: block;

}

.mobile-menu__list {

    display: flex;

    flex-direction: column;

    gap: 1.5rem;

}

.mobile-menu__list a {

    color: var(--color-text);

    font-size: 1rem;

    transition: .3s ease;

}

.mobile-menu__list a:hover {

    color: var(--color-primary);

}

.mobile-menu__cta {

    margin-top: 2rem;

    width: 100%;

}