:root {
    --color-bg: #121214;
    --color-surface: #1e1e2f;
    --color-text-primary: #e0e0e0;
    --color-text-secondary: #a3a3c2;
    --color-border: #2e2e3e;
    --color-accent-primary: rgba(89, 49, 150, 1);
    --color-accent-hover: #8d63db;
    --color-success: #22c55e;
    --color-warning: #facc15;
    --color-error: #ef4444;
    --color-info: rgb(0, 156, 220);

    --font-heading: 'Montserrat', sans-serif;
    --nav-link-color: #ffffff9b;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


body {
    font-family: 'Nunito', sans-serif;
    overflow-x: hidden;
}

a {
    text-decoration: none;
}


/* ----- View Transition Styles ----- */

@view-transition {
    navigation: auto;
}

.navbar {
    view-transition-name: header;
}

::view-transition-group(root) {
    animation-duration: 0.5s;
}

.services-nav {
    top: 50px;
    view-transition-name: sub-header;
}

.service {
    view-timeline-name: service;
    animation: fadeIn 0.75s ease-in;
}


[data-bs-theme="dark"] .services-nav {
    background-color: var(--color-surface);
}
/* End of View Transition Styles */

/* ----- General Overrides ----- */

.navbar-brand {
    font-family: 'Nova Flat', sans-serif;
}

.btn {
    border-radius: 15px;
}

h1, h2, h3 {
    font-family: var(--font-heading);
}

.services-nav .nav-link {
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    transition: background-color 0.5s ease-in-out;
}

.services-nav .nav-link:hover {
    background-color: var(--color-accent-primary);
}

.services-nav .nav-link.active {
    background-color: var(--color-accent-primary);
}

.address {
    white-space: pre-line;
}

.timeline:before {
    content: "";
    background: whitesmoke;
    width: 5px;
    height: 95%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item:nth-child(even) .timeline-content {
    float: right;
    padding: 10px 30px 10px 30px;
}

.timeline-item:nth-child(even) .timeline-content .date {
    right: auto;
    left: 0;
}

.timeline-item:nth-child(even) .timeline-content::after {
    content: "";
    position: absolute;
    border-style: solid;
    width: 0;
    height: 0;
    top: 30px;
    left: -15px;
    border-width: 10px 15px 10px 0;
    border-color: transparent var(--color-accent-primary) transparent transparent;
}

.timeline-item::after {
    content: "";
    display: block;
    clear: both;
}

.timeline-content {
    position: relative;
    width: 45%;
    padding: 10px 30px;
    border-radius: 20px;
    /* background: var(--color-surface); */
}

.timeline-content::after {
    content: "";
    position: absolute;
    border-style: solid;
    width: 0;
    height: 0;
    top: 30px;
    right: -15px;
    border-width: 10px 0 10px 15px;
    border-color: transparent transparent transparent var(--color-accent-primary);
}

.timeline-img {
    width: 30px;
    height: 30px;
    background: var(--color-accent-primary);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    margin-top: 25px;
    margin-left: -15px;
}

@media screen and (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }

    .timeline .timeline-img {
        left: 20px;
    }

    .timeline .timeline-content {
        max-width: 100%;
        width: auto;
        margin-left: 35px;
    }

    .timeline .timeline-item:nth-child(even) .timeline-content {
        float: none;
    }

    .timeline .timeline-item:nth-child(odd) .timeline-content::after {
        content: "";
        position: absolute;
        border-style: solid;
        width: 0;
        height: 0;
        top: 30px;
        left: -15px;
        border-width: 10px 15px 10px 0;
        border-color: transparent var(--color-accent-primary) transparent transparent;
    }
}


/* End of General Overrides */


/* ----- Light Mode Overrides ----- */

[data-bs-theme="light"] .services-nav .nav-link {
    color: black;
}

[data-bs-theme="light"] .list-group-item {
    background-color: #ffffff;
    color: #444;
}
ul.hosting .list-group-item {
    background-color: var(--color-accent-primary);
    color: #ffffff;
}

[data-bs-theme="light"] .navbar-toggler {
    background-color: #fff;
}

[data-bs-theme="light"] .nav-link {
    color: var(--nav-link-color);
}

[data-bs-theme="light"] .offcanvas {
    background-color: var(--color-accent-primary)
}

[data-bs-theme="light"] .nav-link:hover, [data-bs-theme="light"] .nav-link.active, [data-bs-theme="light"] .dropdown-toggle.show {
    color: #fff;
}

[data-bs-theme="light"] .bg-primary-subtle {
    background-color: rgb(221, 218, 218) !important;
}

[data-bs-theme="light"] .bg-body {
    background-color: rgba(188, 190, 192, 0.623) !important;
}

/* [data-bs-theme="light"] .bg-body {
    background-color: #0358ad !important;
} */

/* End of light mode Overrides */


/* ----- Utilities ----- */

.hero {
    position: relative;
    min-height: 70vh;
    background: center / cover no-repeat;
    background-color:#444; 
    background-blend-mode: overlay;
}


/* @media screen and (max-width: 400px) {
    .hero {
        min-height: 50vh;
    }
} */

/* For Extra Small Screens */
.studio {
    display: none;
}
@media screen and (min-width: 400px) {
    .studio {
        display: inline-block;
    }
}

.heroimg {
    width: 50%;
    object-fit: contain;
}



@media screen and (max-width: 768px) {
    .heroimg {
        width: 50%;
        margin-top: 20px;
        display: flex;
        justify-content: center;
    }
}

.serviceimg {
    object-fit: contain;
    
}

.services-nav {
    z-index: 1000;
}

.glass {
    backdrop-filter: blur(2px) saturate(102%);
    -webkit-backdrop-filter: blur(2px) saturate(102%); 
    border-radius: 22px;
    background-color: #43265b60;
    border: 1px solid rgba(153, 59, 235, 0.387);
}

/* [data-bs-theme="light"] .glass {
    background-color: rgba(89, 8, 155, 0.6);
    border: 1px solid rgba(55, 4, 80, 0.932);
} */

.fadeIn {
    animation: fadeIn 3s ease-in-out;
}

.surface {
    background-color: var(--color-surface);
}

.subheading {
    font-family: var(--font-heading);
    color: var(--color-text-secondary);
    font-size: 1.1rem;
}

[data-bs-theme="light"] .subheading {
    color: #6868aa;
}

/* End of Utilities */


/* ----- Keyframes ----- */
@keyframes fadeIn {
    from {
        /* scale: 0.85; */
        opacity: 0;
    }
    to {
        /* scale: 1; */
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes moveBackground {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 100%;
    }
}

/* End of Keyframes */
