/*========================================\
            VARIABLES & BASE
\=========================================*/
:root {
    --bs-primary: #000000;
    --bs-dark: #000000;
    --bs-dark-rgb: 0, 0, 0;
}

* {
    font-family: "Hanken Grotesk", sans-serif; /* Fallback should be sans-serif */
}

html, body {
    background-color: var(--bs-dark);
    overscroll-behavior-y: auto;
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
    height: 100vh;
    margin: 0;
}

main {
    background-color: #ffffff;
}

/* Reusable Utility Classes */
.text-shadow { text-shadow: 4px 4px 4px rgba(0, 0, 0, 1); }
.vh-75 { height: 75vh; }

/*=========================================\
                TYPOGRAPHY
\==========================================*/

p, li, pre {
    color: var(--bs-dark);
    font-weight: 450;
    font-size: clamp(15px, 2vw, 17px); 
}

h1, h2, h3 {
    color: var(--bs-dark);
    font-weight: 900;
}

h1 { font-size: clamp(40px, 5vw, 55px); }
h2 { font-size: clamp(32px, 4vw, 45px); }
h3 { font-size: clamp(24px, 3vw, 30px); }

.responsive-title {
    font-size: clamp(2rem, 4vw, 3rem);
}

/*=========================================\
                COMPONENTS
\==========================================*/

/* --- Buttons --- */
.btn-primary, .btn-secondary {
    border-radius: 50rem;
    border-width: 2px;
    transition: all 0.5s ease-in-out;
}

.btn-primary {
    padding: 0.7rem 1.2rem;
    font-size: 1.25rem;
    color: var(--bs-dark);
    background-color: transparent;
    border-color: var(--bs-primary);
}

.btn-primary:hover {
    animation: bounce 0.5s ease-in-out;
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #ffffff;
}

.btn-secondary {
    padding: 0.8rem 1.3rem;
    font-size: 1.3rem;
    color: #ffffff;
    background-color: transparent;
    border-color: #ffffff;
}

.btn-secondary:hover {
    animation: bounce 0.5s ease-in-out;
    background: linear-gradient(45deg, #ff416c, #ff4b2b);
    border-color: transparent;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: scale(1); }
    40% { transform: scale(1.05); }
    60% { transform: scale(1.02); }
}

/* --- Cards (Optional hover effect) --- */
/* Add the class 'card-zoom' to get this effect.  */
.card-zoom {
    transition: transform 0.4s ease-out;
}
.card-zoom:hover {
    transform: scale(1.04);
}

/* --- Navbar --- */
.navbar.transparent {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.33)) !important;
}

.navbar-nav .nav-link:not(.dropdown-toggle) {
    position: relative;
    transition: color 0.3s ease-in-out;
}

.navbar-nav .nav-link:not(.dropdown-toggle)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -20px;
    width: 100%;
    height: 2px;
    background-color: white;
    transform: scaleX(0);
    transition: transform 0.3s ease-in-out;
}

.navbar-nav .nav-link:not(.dropdown-toggle):hover::after {
    transform: scaleX(1);
}

.navbar-nav .dropdown-menu {
    transition: opacity 0.2s ease-in-out;
    opacity: 0;
    display: block;
    visibility: hidden;
}

.navbar-nav .nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.86);
    visibility: visible;
}

/*=========================================\
            PAGE-SPECIFIC STYLES
\==========================================*/

.bg-image-section {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    height: 100vh;
}

/* --- Homepage --- */
#scroll-down-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5em;
    padding: 10px;
    cursor: pointer;
}

/* --- Team Page --- */
.team-img-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.team-img-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.team-section .btn-outline-primary {
    border-color: var(--bs-dark);
    color: var(--bs-dark);
}
.team-section .btn-outline-primary:hover {
    background-color: rgba(0, 0, 0, 0.15);
}

/* --- Vacancies Page --- */
main:has(.vacancies) {
    background-color: transparent !important;
}

body:has(.vacancies) {
    background-color: transparent !important;
}

.vacancies .bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
    /* For Opera GX */
    transform: translateZ(0);
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.423); /* Hazy overlay */
    z-index: -1;
}

.position {
    font-weight: 900 !important;
    font-size: clamp(2rem, 4vw, 3.5rem);
    text-decoration: none !important;
    color: white;
}

.position:hover {
    background-image: linear-gradient(45deg, #ff416c, #ff4b2b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

/* --- Partners Page --- */
main:has(.partners) {
    background-color: transparent !important;
}

body:has(.partners) {
    background-color: transparent !important;
}

.bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.6);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.content {
    position: relative;
    z-index: 1;
    padding: 3rem 5%;
    color: white;
}

.content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: bold;
    text-align: center;
    margin-bottom: 2rem;
    color: white !important;
}

.partner-grid {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.logo-box {
    background: rgba(255, 255, 255, 0.88);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    position: relative;
}

.logo-box::before {
    content: "";
    position: absolute;
    inset: -5px;
    background: linear-gradient(45deg, rgba(255,0,150,0.5), rgba(0,204,255,0.5));
    z-index: -1;
    border-radius: 10px;
}

.partner-logo {
    display: block;
    object-fit: contain;
}

.tier-stellar .partner-logo { height: 200px; width: 220px; }
.tier-solar .partner-logo   { height: 150px; width: 170px; }
.tier-lunar .partner-logo   { height: 130px; width: 150px; }
.tier-support .partner-logo { height: 110px; width: 130px; }
.tier-rexus-bexus-programme .partner-logo   { height: 110px; width: 130px; }

/* --- Contact Page (Typed.js) --- */
.typed-cursor { display: none !important; }

.textanim {
    display: inline;
    white-space: nowrap;
    vertical-align: middle;
}

.textanim::after {
    content: '|';
    color: white;
    font-size: inherit;
    display: inline;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* --- Footer --- */
footer {
    background-color: var(--bs-dark);
    color: #ffffff;
}

#partnerlogo_image {
    width: 150pt;
    height: 100%;
    object-fit: contain;
}