@import "bootstrap/scss/bootstrap";
@import url("https://fonts.googleapis.com/css?family=Open+Sans:400|Raleway:300");
@import url("https://fonts.cdnfonts.com/css/beyonders");
@font-face {
    font-family: 'beyonders';
    src: url('assets/Beyonders-6YoJM.ttf') format('eot'), url('assets/Beyonders-6YoJM.ttf') format('woff'), url('assets/Beyonders-6YoJM.ttf') format('truetype');
}

body {
    --background-dark: rgb(32, 32, 32);
    --background-dark2: rgb(54, 54, 54);
    --background-darklight: rgb(54, 54, 54);
    --red-color: rgba(255, 77, 77, 1);

    margin: 0;
    text-align: center;
    user-select: text;
    background: rgb(20, 20, 20);
    color: white;
    font-family: Titillium Web;
    -webkit-tap-highlight-color: transparent !important;
}

body, html{
    scroll-behavior: smooth;
}

::selection {
    background: rgba(13, 67, 185, 0.342);
}

hr {
    border: 1px solid gray;
    text-align: center;
}

nav.top {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgb(24, 24, 24);
    border-bottom: 1px solid rgba(65, 65, 65, 0.815);
    display: flex;
    align-items: center;
    padding: 10px;
    transition: background 0.3s ease;
}

nav.top .logo {
    position: absolute;
    left: 17rem;
    z-index: 1001;
}

nav.top .nav-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 2rem;
}

nav.top .logo img {
    height: 70px;
}

nav.top .nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
    margin-left: 765px;
}

nav.top .nav-links a {
    color: rgb(167, 167, 167);
    text-decoration: none;
    font-family: Titillium Web;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

nav.top .nav-links a:hover {
    color: rgb(219, 219, 219);
}

.btn_nav_download {
    background-color: rgb(29, 121, 173);
    color: white;
    border: none;
    font-size: 1.1rem;
    font-family: Titillium Web;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-left: auto;
    right: 17rem;
}

.btn_nav_download a {
    color: white;
    text-decoration: none;
    position: relative;
    font-size: 0.9rem;
    z-index: 1;
}

.btn_nav_download::before {
    content: '';
    position: absolute;
    top: var(--y);
    left: var(--x);
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(255,255,255,0.5) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 0;
}

.btn_nav_download:hover::before {
    opacity: 1;
}

.background {
    position: relative;
    width: 100%;
    min-height: 100vh;
}

.background .bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    z-index: -1;
}

.content {
    position: absolute;
    top: 50%;
    left: 50%;
    right: 0;
    transform: translate(-50%, -50%);
}

.btn_download {
    background-color: rgb(29, 121, 173);
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1.2rem;
    outline: 2px solid white;
    cursor: pointer;
    outline-offset: 3px;
    position: relative;
    overflow: hidden;
    transition: 0.3s ease;
}

.btn_download:hover {
    outline: 2px solid rgb(136, 136, 136);
    outline-offset: 3px;
    background-color: rgb(43, 147, 207);
}

.btn_download::before {
    content: '';
    position: absolute;
    top: var(--y);
    left: var(--x);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255,255,255,0.5) -50%, transparent 40%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 0;
}

.btn_download:hover::before {
    opacity: 1;
}

.btn_download a {
    position: relative;
    z-index: 1;
    color: white;
    text-decoration: none;
}

.footer {
    background-color: rgb(20, 20, 20);
    padding: 40px 20px 20px;
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgb(40, 40, 40);
}

.footer-main {
    display: flex;
    align-items: flex-start;
    gap: 60px;
    padding: 50px;
    width: 1000px;
    margin: 0 auto 50px;
}

.footer-logo {
    flex-shrink: 0;
    margin-top: -30px;
}

.footer-logo img {
    height: 5rem;
    transform: scale(1.3);
}

.footer-content {
    display: flex;
    gap: 60px;
    margin: 0 auto;
    margin-left: 40px;
    transform: scale(0.9);
}

.footer-col {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 10px;
    min-width: 120px;
}

.footer-col h3 {
    color: white;
    font-size: 1rem;
    margin: 0 0 10px 0;
}

.footer-col a {
    color: rgb(150, 150, 150);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgb(40, 40, 40);
    width: 1000px;
    text-align: center;
    margin: 0 auto 50px;
}

.footer-bottom p {
    color: rgb(100, 100, 100);
    font-size: 0.85rem;
    margin: 0;
    text-align: left;
}

.footer-launcher {
    width: 280px;
    height: 220px;
    overflow: hidden;
    position: relative;
    background-color: rgb(30, 30, 30);
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

.fade-in-delay-1 { animation-delay: 0.1s; }
.fade-in-delay-2 { animation-delay: 0.2s; }
.fade-in-delay-3 { animation-delay: 0.3s; }
.fade-in-delay-4 { animation-delay: 0.4s; }
.fade-in-delay-5 { animation-delay: 0.5s; }
.fade-in-delay-6 { animation-delay: 0.6s; }
.fade-in-delay-7 { animation-delay: 0.7s; }
.fade-in-delay-8 { animation-delay: 0.8s; }

.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.footer-launcher::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('assets/step-and-repeat-preview.png');
    background-size: cover;
    background-position: center;
    filter: blur(2px);
    z-index: 0;
}

.footer-launcher .launcher-btn {
    position: relative;
    z-index: 1;
    background-color: transparent;
    color: white;
    outline: gray solid 2px;
    outline-offset: 2px;
    padding: 5px 20px;
    font-size: 1rem;
    font-family: Titillium Web;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.footer-launcher .launcher-btn:hover {
    background-color: rgba(255, 255, 255, 0.089);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 10px;
    z-index: 1002;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: rgb(167, 167, 167);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

.nav-links.mobile-active {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background: rgb(24, 24, 24);
    padding: 20px 0;
    border-bottom: 1px solid rgba(65, 65, 65, 0.815);
    gap: 10px;
    margin-left: 0 !important;
    z-index: 999;
}

.nav-links.mobile-active li {
    text-align: center;
}

@media (max-width: 1200px) {
    nav.top .nav-links {
        margin-left: 400px;
    }
    
    nav.top .logo {
        left: 12rem;
    }
    
    .btn_nav_download {
        right: 10rem;
    }
}

@media (max-width: 992px) {
    .hamburger {
        display: flex;
        margin-left: auto;
        margin-right: 20px;
    }
    
    nav.top {
        position: relative;
    }
    
    nav.top .nav-links {
        display: none;
        margin-left: 0;
    }
    
    nav.top .logo {
        left: 1rem;
    }
    
    .btn_nav_download {
        display: none;
    }
    
    .nav-links.mobile-active + .btn_nav_download {
        display: block;
        position: absolute;
        top: 70px;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        margin: 10px 0;
    }
    
    .footer-main {
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 30px 20px;
    }
    
    .footer-content {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-bottom {
        width: 100%;
    }
    
    .content {
        left: 50%;
        right: auto;
        width: 90%;
    }
}

@media (max-width: 390px) {
    .hamburger {
        margin-right: 10px;
        padding: 8px 5px;
    }
    
    .hamburger span {
        width: 18px;
    }
    
    .nav-links.mobile-active {
        padding: 15px 0;
        gap: 8px;
    }
    
    .nav-links.mobile-active li a {
        font-size: 0.8rem;
        padding: 8px 1rem;
    }
    
    .nav-links.mobile-active + .btn_nav_download {
        top: 60px;
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .leadership-list {
        width: 95% !important;
    }
    
    .intro-leadership {
        height: 200px !important;
    }
    
    .intro-leadership h1 {
        font-size: 40px !important;
    }
}

@media (max-width: 768px) {
    .content h1 {
        font-size: 2rem !important;
    }
    
    .content p {
        font-size: 0.9rem !important;
    }
    
    .footer-main {
        padding: 20px;
        gap: 30px;
    }
    
    .footer-content {
        gap: 30px;
    }
    
    .footer-col {
        min-width: 100px;
    }
    
    .footer-launcher {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .content h1 {
        font-size: 1.5rem !important;
    }
    
    .content p {
        font-size: 0.8rem !important;
    }
    
    .btn_download {
        padding: 10px 18px;
        font-size: 1rem !important;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-col {
        text-align: center;
    }
}

@media (max-width: 420px) {
    .content h1 {
        font-size: 1.3rem !important;
    }
    
    .content p {
        font-size: 0.75rem !important;
    }
    
    .btn_download {
        padding: 8px 14px;
        font-size: 0.85rem !important;
    }
    
    .footer-main {
        padding: 15px 10px;
    }
    
    .footer-col h3 {
        font-size: 0.9rem;
    }
    
    .footer-col a {
        font-size: 0.8rem;
    }
    
    .footer-logo img {
        height: 3.5rem;
    }
}

@media (max-width: 390px) {
    nav.top {
        padding: 8px 5px;
    }
    
    nav.top .logo img {
        height: 50px;
    }
    
    .hamburger {
        padding: 8px 5px;
    }
    
    .hamburger span {
        width: 20px;
        height: 2px;
    }
    
    .content {
        width: 95% !important;
        padding: 0 10px;
    }
    
    .content h1 {
        font-size: 1.2rem !important;
    }
    
    .content p {
        font-size: 0.7rem !important;
    }
    
    .btn_download {
        padding: 8px 12px;
        font-size: 0.8rem !important;
    }
    
    .footer-main {
        padding: 15px 10px;
        gap: 20px;
    }
    
    .footer-content {
        gap: 20px;
    }
    
    .footer-col {
        min-width: 80px;
    }
    
    .footer-col h3 {
        font-size: 0.85rem;
    }
    
    .footer-col a {
        font-size: 0.75rem;
    }
    
    .footer-logo img {
        height: 3rem;
    }
    
    .footer-bottom p {
        font-size: 0.7rem;
    }
    
    .toc {
        display: none;
    }
    
    .text {
        margin-left: 10px !important;
        width: 95% !important;
    }
    
    .search-input {
        width: 80% !important;
        padding: 10px !important;
    }
}

@media (max-width: 420px) {
    .header, .main-content, .section, .text, .container {
        width: 90% !important;
        padding: 1rem !important;
    }
    
    .header-title {
        font-size: 1.5rem !important;
    }
    
    .header-description {
        font-size: 0.85rem !important;
    }
    
    .leadership-list {
        width: 90% !important;
    }
    
    .leadership-cards {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .card {
        width: 100% !important;
    }
    
    table {
        font-size: 0.75rem;
    }
    
    th, td {
        padding: 5px;
    }
    
    .toc {
        position: static;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgb(54, 54, 54);
        padding: 10px;
    }
    
    .intro-leadership {
        height: 250px !important;
    }
    
    .intro-leadership h1 {
        font-size: 60px !important;
    }
}

@media (max-width: 390px) {
    .header, .main-content, .section, .text, .container {
        width: 92% !important;
        padding: 0.8rem !important;
    }
    
    .header-title {
        font-size: 1.3rem !important;
    }
    
    .header-description {
        font-size: 0.8rem !important;
    }
    
    .warning-top p, .warning-top2 p {
        font-size: 0.75rem;
        padding: 10px;
    }
    
    .leadership-cards {
        grid-template-columns: 1fr !important;
    }
    
    .card {
        width: 100% !important;
    }
    
    .card-image {
        width: 100px;
    }
    
    .name {
        font-size: 14px;
    }
    
    .position {
        font-size: 12px;
    }
    
    table {
        font-size: 0.7rem;
    }
    
    th, td {
        padding: 4px;
    }
    
    .newsroom-content h1 {
        font-size: 2rem !important;
    }
    
    .card-title {
        font-size: 1rem !important;
    }
    
    .card-meta {
        font-size: 0.75rem;
    }
    
    .card-description {
        font-size: 0.8rem;
    }
    
    .container .Title {
        font-size: 1.3rem;
    }
    
    .container p {
        font-size: 0.85rem;
    }
    
    .lead {
        font-size: 1rem;
    }
}

@media (max-width: 900px) {
    .nav-sidebar {
        width: 50px;
    }
    
    .left-side {
        margin-left: 50px !important;
        padding-left: 20px !important;
    }
}

@media (max-width: 480px) {
    .nav-sidebar {
        width: 40px;
    }
    
    .left-side {
        margin-left: 40px !important;
    }
    
    .error-code {
        font-size: 80px !important;
    }
    
    .error-title {
        font-size: 1.5rem !important;
    }
}

@media (max-width: 390px) {
    .right-side {
        min-height: 30vh !important;
    }
    
    .astronaut {
        font-size: 80px !important;
    }
    
    .error-code {
        font-size: 60px !important;
    }
    
    .error-message {
        font-size: 0.9rem !important;
        max-width: 250px !important;
    }
    
    .go-home-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}
