:root {
    --helvetica: "Helvetica Neue", Helvetica, Arial, sans-serif;
    --inter: "Inter", sans-serif;
    --bg-dark: #0b0b10;
    --bg-card: #121218;
    --bg-sidebar: #0e0e14;
    --border-color: #262630;
    --primary: #957EFC;
    --primary-hover: #b198ff;
    --text-light: #eef2f5;
    --text-muted: #9a9aa8;
}

body, button {
    font-family: var(--inter);
}

body {
    background-color: rgb(20, 20, 20);
    color: var(--text-light);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* custom scrollbar */

/* header styles */
header {
    width: 100%;
    background-color: rgb(39, 39, 39);
    transition: all 0.3s ease;
    z-index: 1000;
}

nav {
    width: 100%;
    max-width: 1400px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 24px;
    gap: 20px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.nav-left img {
    width: 150px;
    object-fit: cover;
}

.input {
    width: 700px;
    max-width: 100%;
    height: 45px;
    position: relative;
}

.input input {
    width: 100%;
    height: 100%;
    padding: 4px 90px 4px 24px;
    border-radius: 20px;
    border: none;
    outline: none;
    font-size: 16px;
    background-color: #101518;
    outline: 2px solid rgb(44, 54, 63);
    color: rgb(240, 243, 245);
}

#searchBtn {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 80px;
    height: 100%;
    border-radius: 26px;
    border: none;
    background-color: #957efc;
    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
}

#searchBtn:hover {
    background-color: #a88cff;
}

#inputClick {
    position: absolute;
    top: 50%;
    left: -10px;
    transform: translateY(-50%);
    color: rgb(96, 111, 126);
    border: none;
    background-color: transparent;
    opacity: 0;
    transition: all 0.4s ease-in-out;
}

.links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.links a {
    color: #b0b9c1;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.links a:hover {
    color: #957efc;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-right-hamburger {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.nav-right-hamburger span {
    width: 28px;
    height: 2px;
    background: #e2e6ed;
    transition: 0.2s;
}

.nav-right-hamburger span:first-child {
    width: 15px;
    height: 1.6px;
}

.nav-right-hamburger span:nth-child(2) {
    width: 25px;
}

.nav-right-hamburger:hover span:nth-child(1),
.nav-right-hamburger:hover span:nth-child(2) {
    width: 30px;
}

/* fixed header */
header.fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgb(39, 39, 39);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.5s ease-in-out;
    z-index: 999;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== MOBILE NAVIGATION - LEFT AND RIGHT SEPARATED ========== */
.nav-mobile {
    display: none;
    width: 100%;
}

.nav-up-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* LEFT SIDE - HAMBURGER MENU */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    width: 28px;
    height: 2px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* CENTER - LOGO */
#mobileLogo {
    width: 130px;
    object-fit: contain;
}

/* RIGHT SIDE - CONTACT HAMBURGER (SEPARATED FROM LEFT) */
.nav-right-hamburger-mobile {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    padding: 8px;
}

.nav-right-hamburger-mobile span {
    width: 28px;
    height: 2px;
    background: #e2e6ed;
    transition: 0.2s;
    border-radius: 2px;
}

.nav-right-hamburger-mobile span:first-child {
    width: 18px;
}

.nav-right-hamburger-mobile:hover span {
    width: 28px;
}

/* mobile drawer panel */
#mobileNav {
    display: none;
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background-color: rgb(16, 21, 24);
    z-index: 2000;
    padding: 32px 24px;
    transition: left 0.4s ease-in-out;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

#mobileNav.active {
    left: 0;
}

#closeMoileNav {
    position: absolute;
    right: 20px;
    top: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 26px;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

#closeMoileNav:hover {
    transform: rotate(90deg);
}

.mobile-nav-link {
    margin-top: 80px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav-link a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 8px;
    transition: color 0.3s ease;
}

.mobile-nav-link a:hover {
    color: #957efc;
}

#bottom-p {
    position: absolute;
    bottom: 40px;
    font-size: 14px;
    color: rgb(176, 185, 193);
}

/* Get in touch modal */
.get-in-touch {
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    right: -100%;
    background-color: rgba(0, 0, 0, 0.65);
    z-index: 10000;
    transition: all 0.5s ease-in-out;
}

.get-in-touch.active {
    right: 0;
}

.get-in-touch-box {
    position: fixed;
    width: 30%;
    max-width: 450px;
    height: 100vh;
    background-color: #f5f5f5;
    right: -30%;
    padding: 2rem;
    transition: all 1s ease-in-out;
    overflow-y: auto;
}

.get-in-touch-box.active {
    right: 0;
}

.get-in-touch-box-close {
    display: flex;
    justify-content: end;
}

#closeGetInTouch {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid #141414;
    color: #141414;
    background-color: transparent;
    cursor: pointer;
}

#closeGetInTouch i {
    transition: all 0.4s ease-in-out;
}

#closeGetInTouch:hover i {
    transform: rotate(360deg);
}

.get-in-touch-box-text img {
    width: 130px;
    object-fit: cover;
    margin-top: 25px;
    margin-bottom: 18px;
}

.get-in-touch-box-text p {
    color: #323232;
    font-size: 14px;
    line-height: 21px;
}

.get-in-touch-box-text h2 {
    color: #141414;
    font-size: 22px;
    margin: 18px 0;
}

.get-in-touch-box-text-boxs {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.get-in-touch-box-text-box {
    display: flex;
    align-items: center;
    gap: 20px;
}

.get-in-touch-box-text-box button {
    border: 1.5px solid #323232;
    color: #323232;
    background-color: transparent;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 11px;
    cursor: default;
}

.get-in-touch-box-text input {
    border: none;
    outline: none;
    border-bottom: 1px solid #32323224;
    color: #323232;
    background-color: transparent;
    padding-bottom: 10px;
    width: 100%;
}

/* main container */
.container {
    display: flex;
    gap: 20px;
    padding: 20px;
    max-width: 1400px;
    margin: 32px auto;
}

.main {
    flex: 3;
}

.main h2 {
    color: #f5f5f5;
    font-size: 40px;
    margin-bottom: 20px;
}

.sidebar {
    flex: 1;
    background: #1a1a1a;
    padding: 15px;
    color: #f5f5f5;
    border-left: 4px solid #957EFC;
    border-radius: 12px;
    height: fit-content;
}

.sidebar h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.news {
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

/* news cards - DESKTOP: horizontal row */
.card {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: row;
    gap: 0;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    overflow: hidden;
    border-left: 4px solid #957EFC;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card__header {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.card h2 {
    font-size: 19px;
    margin: 0;
    line-height: 1.3;
    color: #f5f5f5;
    font-weight: 600;
}

.card__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #aaa;
    flex-wrap: wrap;
}

.card__source {
    font-weight: 500;
    color: #ccc;
}

.card__date {
    opacity: 0.7;
}

.card img {
    width: 300px;
    min-width: 300px;
    border-radius: 0;
    object-fit: cover;
    height: 200px;
}

.card p {
    font-weight: 400;
    margin: 0;
    color: #bbb;
    line-height: 1.6;
    font-size: 15px;
}

.card__footer {
    display: flex;
    justify-content: flex-start;
    margin-top: 12px;
}

.card__button {
    display: inline-flex;
    align-items: center;
    padding: 9px 18px;
    border-radius: 6px;
    border: none;
    background: #957EFC;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    transition: background 0.18s ease;
    cursor: pointer;
}

.card__button:hover {
    background: #a68ffc;
}

.card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    justify-content: center;
}

/* sidebar product cards */
.deals {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidecard {
    display: flex;
    gap: 10px;
    margin-bottom: 0;
    background: #222;
    border-radius: 10px;
    padding: 10px;
    align-items: center;
}

.sidecard__img {
    width: 80px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    background: #222;
    overflow: hidden;
    flex-shrink: 0;
}

.sidecard__img img {
    width: 80px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
}

.sidecard p {
    color: #bbb;
    font-size: 14px;
    line-height: 1.4;
}

.sidecard strong {
    color: white;
}

footer{
    width: 100%;
    padding: 32px 64px;
    background-color: #000;
}

.footer-links{
    max-width: 1350px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0 3rem;
}

.footer-links a{
    font-size: 14px;
    color: #fff;
}

.footer-links p{
    font-size: 11px;
    color: #fff;
}
/* ========== RESPONSIVE BREAKPOINTS ========== */

@media screen and (max-width: 768px){

    /* hide desktop */
    .nav-right, .nav-left img, .links {
        display: none;
    }

    .nav-left{
        gap: 0;
    }

    .input{
        width: 100%;
    }
    /* show mobile nav */
    .nav-mobile{
        display: flex;
        width: 100%;
    }

    nav{
        flex-direction: column;
        padding: 12px 16px;
        gap: 10px;
    }

    .nav-up-mobile{
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    /* hamburger */
    .hamburger{
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .hamburger span{
        width: 26px;
        height: 2px;
        background: #fff;
    }

    /* logo */
    #mobileLogo{
        width: 110px;
    }

    /* right hamburger */
    .nav-right-hamburger-mobile{
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .nav-right-hamburger-mobile span{
        width: 26px;
        height: 2px;
        background: #fff;
    }

    /* mobile drawer FIX */
    #mobileNav{
        display: block;
        left: -280px;
    }

    /* container */
    .container{
        flex-direction: column;
        padding: 15px;
    }

    .main,
    .sidebar{
        width: 100%;
    }

    /* cards */
    .card{
        flex-direction: column;
    }

    .card img{
        width: 100%;
        height: 200px;
    }

    /* input */
    .input{
        width: 100%;
        margin-top: 10px;
    }

    /* modal */
    .get-in-touch-box{
        width: 80%;
        right: -80%;
    }
}

/* light mode support */
body.light .nav-right-hamburger span,
body.light .nav-right-hamburger-mobile span {
    background-color: #141414;
}

body.light header {
    background-color: #fff;
}

body.light .input input {
    outline: 2px solid rgb(199, 205, 210);
    background-color: #f5f8fa;
    color: #323232;
}

body.light .links a {
    color: #5b636a;
}

body.light .links a:hover {
    color: #7c49fc;
}

body.light .card {
    background: #fff;
}

body.light .card h2,
body.light .card p {
    color: #333;
}

body.light .sidebar {
    background: #f5f5f5;
    color: #333;
}

body.light .sidecard {
    background: #e8e8e8;
}

body.light .sidecard p,
body.light .sidecard strong {
    color: #333;
}

body.light .get-in-touch-box {
    background-color: #fff;
}

body.light #mobileNav {
    background-color: #fff;
}

body.light #mobileNav a {
    color: #333;
    border-bottom-color: #ddd;
}

body.light #closeMoileNav {
    color: #333;
}

body.light .hamburger span {
    background-color: #333;
}

