html {
    scroll-behavior: smooth;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6,
.brand-font {
    font-family: "Teko", sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    line-height: 1.1;
    font-weight: 500;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
div,
li,
ul,
ol,
button,
a,
small,
input,
.text-dark {
    color: var(--text) !important;
}

.article-content .cover {
    border-radius: 15px !important;
    overflow: hidden !important;
    max-height: 25rem !important;
}

.cover img:hover {
    -webkit-transform: scale(1.05);
    -ms-transform: scale(1.05);
    transform: scale(1.05);
}

.cover img {
    border-radius: 15px !important;
    -webkit-transition: 0.4s ease-in-out;
    transition: 0.4s ease-in-out;
    /*height: 100% !important;*/
    object-fit: initial !important ;
}

img.logo {
    max-height: 3rem !important;
    object-fit: cover;
}

@media (max-width: 768px) {
    .article-content .cover {
        max-height: 17rem !important;
    }
}

/* Footer */
footer {
    background: #050505;
    padding: 20px 0 40px;
    border-top: 1px solid var(--border);
    margin-top: 80px;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231a1a1a' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.social-links a {
    background: rgba(255, 255, 255, 0.05);
    width: 45px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-muted) !important;
    font-size: 1.2rem;
    margin: 0 8px;
    border: 1px solid var(--glass-border);
}

.social-links a:hover {
    background: var(--primary);
    color: white !important;
    transform: rotate(360deg);
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary);
}

/* Navbar */
.navbar {
    background: var(--nav);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text) !important;
}

.nav-link {
    color: var(--text-light);
    font-family: "Teko", sans-serif;
    font-size: 1.3rem;
    letter-spacing: 1px;
    position: relative;
    padding: 0.5rem 1rem !important;
}

.nav-link::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary);
    transition: all 0.3s ease;
    /* box-shadow: 0 0 8px var(--primary); */
}

.nav-link:hover::before {
    width: 80%;
}

.navbar-toggler:not(.collapsed) .icons {
    color: var(--primary) !important;
}


@media (max-width: 990px) {
    .nav-link::before {
        left: 3%;
        transform: translateX(0%);
    }

    .nav-link:hover::before {
        width: 30%;
    }
}

.nav-link:hover {
    color: var(--primary) !important;
}

.btn {
    box-shadow: 0 1px 6px color-mix(in srgb, var(--primary), transparent 60%);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 1px 6px color-mix(in srgb, var(--primary), transparent 50%);
}


.custom-bg {
    background: linear-gradient(75deg, #7f5fff05 -47.93%, #6434ac0d -17.55%, #5e1d970a 13.89%, #3b124803 48.23%, #f4d49f2b 89.43%);
    transition: all 0.5s cubic-bezier(.58, .08, .07, 1);
    transform-origin: center;
}

/* Hero Section */
.hero {
    height: 85vh;
    /* Taller hero */
    /* background:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(10, 10, 10, 0.524)),
        url("../images/hero-bg.jpg"); */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, var(--nav), transparent);
}

.hero h1 {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    /* background: linear-gradient(45deg, #fff, var(--primary)); */
    /*background: linear-gradient(45deg, var(--primary), var(--secondary));*/
    background: linear-gradient(45deg, #6236f6, #1485ff);
      /*background: -webkit-linear-gradient(#eee, #333);*/
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    /*filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.2));*/
}

.hero p {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    color: dark;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(45deg, var(--primary), var(--primary-dark));
    border: none;
    font-family: "Teko", sans-serif;
    font-size: 1.4rem;
    padding: 12px 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 10px;
    /* Sharp edges for technical feel */
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: 0.4s;
    color: #fff !important;
    box-shadow: 0 4px 5px var(--primary);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.4s;
    z-index: -1;
}

.btn-primary:hover::after {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--primary);
    background: linear-gradient(45deg, var(--primary), var(--primary-dark));
}

/* Forms */
.form-control {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--glass-border) !important;
    color: #fff !important;
    padding: 15px;
    border-radius: 5px;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 10px var(--primary);
}


/* Cards */
.card {
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent-color), transparent 95%) 0%, color-mix(in srgb, var(--accent-color), transparent 92%) 100%);
    border: 1px solid color-mix(in srgb, var(--accent-color), transparent 75%);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--text);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(68, 68, 68, 0.116), 0 0 15px rgba(96, 96, 96, 0.055);
}

.card::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, color-mix(in srgb, var(--primary), transparent 85%) 0%, transparent 70%);
    border-radius: 50%;
}

.card:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: #8888884b;
    box-shadow: 0 15px 30px rgba(68, 68, 68, 0.116), 0 0 15px rgba(227, 28, 37, 0.2);
}

.card-img-top {
    max-height: 150px !important;
    object-fit: cover;
    transition: all 0.5s ease;
    filter: grayscale(20%) contrast(1.1);
}

.card:hover .card-img-top {
    filter: grayscale(0%) contrast(1.2);
    transform: scale(1.1);
}

.card-body {
    padding: 1.8rem;
    position: relative;
    z-index: 2;
}

.card-title a,
.title {
    background: linear-gradient(to right, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}

.card-title a:hover,
.title:hover {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

/* Badge */
.badge-cat {
    background: var(--primary);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 10px;
    color: white !important;
}

.badge-cat-item {
    display: inline-block;
    background: color-mix(in srgb, var(--primary), transparent 90%);
    color: var(--primary) !important;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid color-mix(in srgb, var(--primary), transparent 80%);
}

.badge-cat-item:hover {
    background: var(--primary);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px color-mix(in srgb, var(--primary), transparent 70%);
}


/* Article Page */
.article-content {
    background: var(--bg-card);
    backdrop-filter: blur(5px);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.063);
}

.article-content,
.article-content p,
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6,
.article-content li {
    color: var(--text);
}

.article-content p {
    font-size: 1.15rem;
    margin-bottom: 2rem;
}

.article-content .content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px 0;

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.072);
}

/* Breadcumb */
.breadcrumb-items a {
    color: var(--primary) !important;
    font-size: 14px;
}

.breadcrumb-items a:hover {
    font-weight: 500;
}

.breadcrumb-items.active {
    color: #888;
}


/* Sidebar Random Posts */
.sidebar-widget {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 20px;
    margin-bottom: 30px;
}

.sidebar-title {
    font-size: 1.5rem;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: var(--text);
}

.mini-post {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    transition: 0.3s;
    padding: 10px;
    border-radius: 5px;
    background: rgba(237, 237, 237, 0.441);

}

.mini-post:hover {
    background: rgba(255, 255, 255, 0.118);
}

.mini-post-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 15px;
}

.mini-post-title {
    font-size: 1rem;
    line-height: 1.3;
    margin: 0;
}

.mini-post-title a {
    color: var(--text);
    font-weight: 500;
}

.mini-post-title a:hover {
    color: var(--primary);
}

/* Preloader
-------------------------------------------------------*/
.loader-mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99999;
}

.loader {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 50px;
    height: 50px;
    font-size: 0;
    color: #00c9d0;
    background: transparent;
    display: inline-block;
    /*margin: -25px 0 0 -25px;*/
    text-indent: -9999em;
    -webkit-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
}

.lead {
    font-size: 13px;
}

.loader div {
    background-color: var(--primary);
    display: inline-block;
    float: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 50px;
    height: 50px;
    opacity: .5;
    border-radius: 50%;
    -webkit-animation: ballPulseDouble 2s ease-in-out infinite;
    animation: ballPulseDouble 2s ease-in-out infinite;
}

.loader div:last-child {
    -webkit-animation-delay: -1s;
    animation-delay: -1s;
}

@-webkit-keyframes ballPulseDouble {

    0%,
    100% {
        -webkit-transform: scale(0);
        transform: scale(0);
    }

    50% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

@keyframes ballPulseDouble {

    0%,
    100% {
        -webkit-transform: scale(0);
        transform: scale(0);
    }

    50% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

/* Preloader END*/