* {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

:root {
  --c1: #27005e;
  --glow: #d1b0ff;
  --c2: #ff3002;
  --p: #121114;
  --shadow: #00000088;
  --shadow-size: 10px;
  --card: #e6e2ef;
  --b: url(images/backgrounds/white-wallpaper.jpg);
  --theme-img: url(images/icons/sun-icon.png);
}

[data-theme="dark"] {
  --c1: #dbc1ff;
  --glow: #6a00ff;
  --c2: #ff481a;
  --p: #c4c0cc;
  --shadow: #d1b0ff;
  --shadow-size: 0px;
  --card: #181028;
  --b: url(images/backgrounds/dark-wallpaper.jpg);
  --theme-img: url(images/icons/moon-icon.png);
}




body {
  font-size: 16px;
}

h1, h2, h3, h4, p, ul, .h-menu, .grid-layout {
    font-family: 'Poppins', sans-serif;
    transition: color 0.5s ease-in-out;
}


#banner {
  width: 100%;
  height: 100vh;
  background: #240333 url("images/bg-slides/purple-bg3.png") center/cover no-repeat;
}

#banner_menu {
    width: 100%;
    height: 3rem;
    backdrop-filter: blur(0.5rem);
    background-color: #0000;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    transition: background-color 0.5s ease-in-out;
    z-index: 1000;
}

#banner_menu.scrolled {
    background-color: #080016ef;
}

nav {
    width: calc(100% - 12rem);
}

nav > ul {
    list-style: none;
    display: flex;
    gap: clamp(5vw, 7vw, 7.6vw);
    justify-content: center;
    align-items: center;
}

nav > ul > li > a {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: clamp(1rem, 2vw, 1.6rem);
    transition: color 0.2s ease-in-out;
    animation: appear 2s ease-in-out;
}
nav > ul > li > a:hover {
    color: var(--c2);
}

#logo {
    width: 7rem;
    padding-left: 1rem;
    display: flex;
    justify-content: left;
    align-items: center;
    z-index: 1001;
}

#logo_img {
    height: 2rem;
    width: auto;
}

#options {
    width: 8rem;
    display: flex;
    gap: 0.75rem;
    justify-content: right;
}


#hamburger {
    display: none;
    width: calc(100% - 6rem);
    position: relative;
}
.hamburger-btn {
    position: fixed;
    top: 0.8rem;
    right: 0.8rem;
    width: 30px;
    height: 22px;
    cursor: pointer;
    z-index: 1001;
}
.hamburger-btn span {
    display: block;
    width: 100%;
    height: 4px;
    margin-bottom: 5px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}
.hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 10px);
}
.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}
.hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(3px, -8px);
}
.h-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(7, 0, 32, 0.95);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 10vh;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 1000;
}
.h-menu.active {
    opacity: 1;
    visibility: visible;
}
.h-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 2rem;
    font-weight: 600;
    margin: 0.5rem 0;
    transition: color 0.2s;
}
.h-menu a:hover {
    color: var(--c2);
}

h1 {
    font-size: clamp(2.4rem, 6.4vw, 4.2rem);
    width: 100%;
    text-align: center;
    font-weight: 700;
    color: #fff;
    padding-top: 25vh;
    animation: appear 2s ease-in-out;
}

h2 {
    font-size: clamp(1.8rem, 4.3vw, 2.8rem);
    width: 100%;
    text-align: center;
    font-weight: 600;
    color: #fff;
    line-height: 2rem;
    animation: appear 2s ease-in-out;
}

@keyframes appear {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

#content {
    background: var(--b);
    min-height: 100rem;
    padding-top: 1rem;
    padding-bottom: 10rem;
}

h3 {
    font-size: clamp(2.4rem, 5.2vw, 3rem);
    width: 100%;
    text-align: center;
    font-weight: 700;
    color: var(--c1);
    line-height: 3rem;
    padding: 4rem 0 2rem 0;
    margin-top: 1rem;
    text-shadow: var(--glow) 0 0 3rem, var(--glow) 0 0 0.4rem;
}
h4 {
    font-size: clamp(1rem, 2.6vw, 1.2rem);
    width: 90%;
    margin: 0 auto;
    text-align: center;
    font-weight: 500;
    color: var(--p);
    line-height: 1.4rem;
    padding: 0 0 2rem 0;
}

p {
    font-size: clamp(1rem, 2.6vw, 1.2rem);
    width: 80%;
    text-align: justify;
    margin: 0 auto;
    font-weight: 400;
    color: var(--p);
    padding: 1rem;
}

.highlight {
    font-weight: 800;
    color: var(--c2);
}

#theme-toggle {
    width: 4rem;
    height: 2rem;
    margin-right: 1vw;
    border-radius: 1rem;
    border: 2px solid #fff;
    outline: none;
    position: relative;
    background-color: transparent;
    cursor: pointer;
}

#theme-toggle-icon {
    position: absolute;
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 0.7rem;
    background-color: #fff;
    left: 0.2rem;
    top: 0.2rem;
    transition: left 0.3s ease;
}

#theme-toggle.dark #theme-toggle-icon {
    left: 2.2rem;
}

#theme-img {
    height: 2rem;
    width: 2rem;
    background: var(--theme-img);
    background-size: cover;
    filter: brightness(1000);
}

#news-loader {
    width: 100%;
    height: 20rem;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
}

.grid-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    width: 90%;
    max-width: 64rem;
    margin: 0 auto;
    padding-bottom: 2rem;
}

.grid-item {
    background-color: var(--card);
    border-radius: 1rem;
    height: clamp(18rem, 40vw, 28rem);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    z-index: 100;
}
.grid-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px var(--shadow-size) var(--shadow);
    /*cursor: pointer;*/ cursor: not-allowed;
}

.grid-img {
    width: 100%;
    height: 40%;
    overflow: hidden;
    border-radius: 1rem 1rem 0 0;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}
.grid-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem 1rem 0 0;
}

.grid-desc {
    width: 100%;
    height: calc(60% - 2rem);
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    align-items: center;
    padding-top: 2rem;
    gap: 1rem;
}
.grid-desc-title {
    font-size: clamp(0.8rem, 2.6vw, 1.6rem);
    font-weight: 600;
    color: var(--p);
    text-align: center;
}
.grid-desc-details {
    font-size: clamp(0.5rem, 1.8vw, 1rem);
    font-weight: 400;
    color: var(--p);
    width: 80%;
    text-align: center;
}

footer {
    height: 8rem;
    background-color: #080210;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
footer::before {
    content: '';
    position: absolute;
    bottom: 100%;
    display: block;
    width: 100%;
    height: 10rem;
    background: linear-gradient(to bottom, transparent, var(--glow));
    opacity: 0.1;
}
#copyright {
    color: #e1e1e1;
    text-align: center;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
}




@media only screen and (max-width: 1080px) and (min-width: 769px) {
    #theme-toggle, #theme-img {
        transform: scale(0.8);
    }
    #options {
        gap: 0rem;
    }
}

@media only screen and (max-width: 768px) {
    nav {
        display: none;
    }
    #options {
        display: none;
    }
    #options.active {
        display: flex;
        position: absolute;
        z-index: 1010;
        top: 85vh;
        width: 100%;
        justify-content: center;
    }
    #hamburger {
        display: block;
    }
    p {
        width: 90%;
    }
    .grid-layout {
        grid-template-columns: repeat(1, 1fr);
    }
    .grid-item {
        height: 8rem;
        display: flex;
        margin-bottom: 0.25rem;
    }
    .grid-img {
        width: 8rem;
        height: 100%;
        border-radius: 1rem 0 0 1rem;
        clip-path: polygon(0 0, 100% 0%, 85% 100%, 0 100%);
    }
    .grid-img img {
        border-radius: 1rem 0 0 1rem;
    }
    .grid-desc {
        width: calc(100% - 8rem);
        height: 100%;
        padding-top: 1.7rem;
        gap: 0.2rem;
    }
    .grid-desc-title {
        font-size: clamp(1.2rem, 3.6vw, 5rem);
    }
    .grid-desc-details {
        font-size: clamp(0.7rem, 1.8vw, 3rem);
        font-weight: 400;
        color: var(--p);
        width: 80%;
        text-align: center;
    }
    .grid-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px var(--shadow-size) var(--shadow);
    }
}