/* Variables */
:root {
    /* Typography */
    --font-primary: 'Bricolage Grotesque', sans-serif;
    --font-secondary: 'Manrope', sans-serif;
    --font-accent: 'Instrument Serif', serif;

    /* Brand & Deep Cosmic Violet Palette */
    --color-pri: #3B0764;
    --color-sec: #4C1D95;
    --color-accent: #00E5FF;

    /* Light Mode Backgrounds & Text */
    --bg-pri: #F9FAFB;
    --bg-sec: #FFFFFF;
    --bg-tertiary: #F3F4F6;
    
    --text-pri: #111827;
    --text-sec: #4B5563;
    --text-tertiary: #9CA3AF;

    --border-pri: #E5E7EB;

    /* Shadows & Transitions */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition-base: all 0.3s ease-in-out;
}

[data-theme="dark"] {
    --bg-pri: #0A0A0F;
    --bg-sec: #1A1B25;
    --bg-tertiary: #101014;

    --text-pri: #F9FAFB;
    --text-sec: #9CA3AF;
    --text-tertiary: #6B7280;

    --border-pri: #27272A;

    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Custom Classes */
.font-pri { font-family: var(--font-primary); }
.font-sec { font-family: var(--font-secondary); }
.font-accent { font-family: var(--font-accent); font-style: italic; }

.color-pri { color: var(--color-pri); }
.color-sec { color: var(--color-sec); }
.color-accent { color: var(--color-accent); }

.text-pri { color: var(--text-pri); }
.text-sec { color: var(--text-sec); }
.text-tertiary { color: var(--text-tertiary); }

.bg-pri { background-color: var(--bg-pri); }
.bg-sec { background-color: var(--bg-sec); }
.bg-tertiary { background-color: var(--bg-tertiary); }

.border-pri { border: 1px solid var(--border-pri); }
.border-accent { border: 1px solid var(--color-accent); }

.btn-primary {
    background-color: var(--color-pri);
    color: #FFFFFF;
    border: none;
    font-family: var(--font-secondary);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    position: relative;
    transition: color 0.4s ease-in-out;
}

.btn-primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background-color: #fff;
    z-index: 1;
    transition: width 0.4s ease-in-out;
}

.btn-primary:hover {
    color: #000;
}

.btn-primary:hover::before {
    width: 100%;
}

.btn-secondary {
    background-color: var(--color-accent);
    color: #000;
    border: none;
    font-family: var(--font-secondary);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    position: relative;
    transition: color 0.4s ease-in-out;
}

.btn-secondary::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background-color: #000;
    z-index: 1;
    transition: width 0.4s ease-in-out;
}

.btn-secondary:hover {
    color: #fff;
}

.btn-secondary:hover::before {
    width: 100%;
}

.btn-tertiary {
    background-color: transparent;
    color: #fff;
    border: 1px solid #fff;
    font-family: var(--font-secondary);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    position: relative;
    transition: color 0.4s ease-in-out;
}

.btn-tertiary::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background-color: #fff;
    z-index: 1;
    transition: width 0.4s ease-in-out;
}

.btn-tertiary:hover {
    color: #000;
}

.btn-tertiary:hover::before {
    width: 100%;
}

body {
    background-color: var(--bg-pri);
    color: var(--text-sec);
    font-family: var(--font-secondary);
    transition: background-color 0.4s ease, color 0.4s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    color: var(--text-pri);
    font-weight: 700;
    max-width: 900px;
}

p {
    max-width: 1100px;
}

.lh-75 {
    line-height: 1.75 !important;
}

::selection {
    background-color: var(--color-pri);
    color: #FFFFFF;
}

.wrapper {
    max-width: 1600px !important;
    margin: auto !important;
}

.homeHero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 2;
    opacity: 0.6;
}

.homeHeroVideo {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.navbar-toggler:focus {
    outline: none !important;
    box-shadow: none !important;
}

.navbar-toggler svg {
    transition: transform 0.4s ease-in-out;
    transform: rotate(0deg);
}

.navbar-toggler svg:hover {
    transform: rotate(180deg);
}

.themeChanger {
    position: fixed;
    height: fit-content;
    width: fit-content;
    z-index: 9999;
    bottom: 12px;
    right: 12px;
    cursor: pointer;
    transition: background-color 0.4s ease, transform 0.3s ease;
}

.themeChanger:hover {
    transform: scale(1.05);
}

.themeChanger {
    background-color: #000000;
}

.themeChanger svg {
    transition: fill 0.4s ease;
}

[data-theme="dark"] .themeChanger {
    background-color: #FFFFFF;
}

.nav-link {
    position: relative !important;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 3px;
    left: 50%;
    width: 0%;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.3s ease-in-out;
    transform: translateX(-50%)
}

.nav-link:hover::after {
    width: 100%;
}

.marqueeWrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 1rem 0;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marqueeTrack {
    display: flex;
    width: max-content;
    gap: 4rem;
    will-change: transform;
}

.marqueeTrack > div {
    display: flex;
    align-items: center;
    gap: 4rem;
    flex-shrink: 0;
}

.marqueeTrack img {
    width: 50px;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition-base);
}

.marqueeTrack img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}