/* -- BASE RESET -- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: "SF Mono", monospace;
    font-weight: 400;
    font-size: 9px;
    text-transform: uppercase;
    line-height: 1.3;
    letter-spacing: 0.27px;
    color: var(--text-color);
}

/* Pseudo-element overlay handles background for smooth Safari transition */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background-color: var(--bg-color);
    transition: background-color 0.5s ease;
    pointer-events: none;
}

/* Nested text elements inherit color */
p, h3, span, .accordion-body, .h2-divider {
    color: var(--text-color);
}

/* -- CONTAINERS & GRID -- */
.container-fluid,
.row {
    margin: 0;
    padding: 0;
}

.row {
    --bs-gutter-x: 10px;
    --bs-gutter-y: 0;
}

#content {
    padding: 30px 5px 0 5px;
}

/* -- STICKY NAVBAR & FOOTER -- */
.navbar,
footer {
    padding: 10px 5px;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
}

footer {
    position: sticky;
    bottom: 0;
    text-align: left;
}

/* -- FOOTER -- */
#light-toggle {
    cursor: pointer;
}

/* -- NAVBAR LINKS -- */
.nav-link {
    display: inline-block;
    color: var(--text-color);
    text-decoration: none;
    margin: 0;
    padding: 0;
}

.nav-link:hover,
.nav-link:active,
.nav-link.active {
    color: #808080;
}

/* -- ACCORDION -- */
.accordion,
.accordion-item,
.accordion-button,
.accordion-collapse,
.accordion-body {
    text-transform: uppercase;
    line-height: 1.3;
    letter-spacing: 0.27px;
    color: var(--text-color);
    background-color: transparent !important;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 0;
}

.accordion-body h3 {
    text-transform: uppercase;
    line-height: 1.3;
    letter-spacing: 0.27px;
    font-size: 9px;
    color: #808080;
    margin: 0;
    padding: 0;
}

.accordion-body {
    padding: 15px 0 20px 0;
}

.accordion-button {
    border-top: 1px solid var(--divider-color);
    border-radius: 0 !important;
    padding: 5px 0;
    color: var(--text-color);
    background-color: transparent;
    box-shadow: none !important;
}

.accordion-button:hover,
.accordion-button:focus,
.accordion-button:not(.collapsed) {
    background-color: transparent;
    color: var(--text-color);
    box-shadow: none !important;
}

.accordion-button::after {
    display: none;
}

.accordion-icon {
    margin-left: auto;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease-in-out;
}

.accordion-button:not(.collapsed) .accordion-icon {
    transform: rotate(180deg);
}

/* -- VIDEO WRAPPER -- */
.video-wrapper {
    position: relative;
    aspect-ratio: 3 / 2;
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* -- CAROUSEL -- */
.carousel {
    cursor: ew-resize;
}

.carousel-inner,
.carousel-item {
    transition: none !important;
}

.carousel-inner img,
.carousel-inner video {
    width: 100%;
    display: block;
    border-radius: 8px;
}

.carousel-control-prev,
.carousel-control-next {
    display: none;
}

/* -- TYPE -- */
.h2-divider {
    text-transform: uppercase;
    line-height: 1.3;
    letter-spacing: 0.27px;
    font-size: 9px;
    margin: 0 0 20px 0;
    padding: 5px 0 0 0;
    border-top: 1px solid var(--divider-color);
}

h3 {
    text-transform: uppercase;
    line-height: 1.3;
    letter-spacing: 0.27px;
    font-size: 9px;
    color: #808080;
    margin: 0;
    padding: 0;
}

a {
    color: var(--text-color);
    text-decoration: none;
    margin: 0;
    padding: 0;
}

a:hover,
a:active {
    color: #808080;
}

.link-icon {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.link-icon span {
    color: inherit;
    transition: none;
    display: flex;
    align-items: center;
}

.link-icon svg {
    display: block;
}

.link-icon:hover,
.link-icon:active {
    color: #808080;
}

/* -- SPACING -- */
.pb-0  { padding-bottom: 0; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.mb-60 { margin-bottom: 60px; }
.mb-80 { margin-bottom: 80px; }

/* -- PROFILE IMAGE -- */
.profile-img {
    border-radius: 8px;
    margin: 0 0 40px 0;
    width: 100px;
    height: 100px;
}

/* -- IMAGE & VIDEO -- */
img,
video {
    border-radius: 8px;
}

/* -- DARK/LIGHT MODE -- */
body {
    --bg-color: #000000;
    --text-color: #e9e9e9;
    --divider-color: #383838;
}

body.light-mode {
    --bg-color: #fafafa;
    --text-color: #000000;
    --divider-color: #E0E0E0;
}

/* -- ELEMENT TRANSITIONS -- */
html,
body,
.h2-divider,
p,
h3,
span,
a,
.link-icon,
.nav-link,
.accordion-button,
.accordion-body {
    transition: color 0.5s ease, border-color 0.5s ease;
}
