:root {
    --bg-color: #0f0f0f;
    --text-color: #ffffff;
    --text-muted: #3a3a3a;
    --text-faint: #bbbbbb;
    --bg-faint: #181818;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: var(--bg-color);
    overflow-x: hidden;
}

body:not(.index-page) .navbar,
body:not(.index-page) header .navbar,
body:not(.index-page) nav.navbar {
    background-color: var(--bg-color) !important;
    background: var(--bg-color) !important;
}

.navbar.about-active {
    background-color: var(--bg-color) !important;
    background: var(--bg-color) !important;
}

body:not(.index-page) .brand-name,
body:not(.index-page) .nav-link {
    color: var(--text-color);
}

.brand-name,
.nav-link {
    transition: color 0.3s ease;
}

.brand-name:hover {
    color: var(--text-faint);
    cursor: pointer;
}

.nav-link {
    color: var(--text-muted) !important;
}

.nav-link:hover {
    color: var(--text-color) !important;
}

#navMenu {
    background-color: var(--bg-color) !important;
}

.about-section {
    width: 100%;
    min-height: 100vh;
    padding: 70px;
    padding-top: 150px;
}

.about-container {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#about-text {
    text-align: center;
    width: 100%;
}

.card-1-wrapper {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
}

.about-image-box {
    aspect-ratio: 9 / 16;
    flex: 0 0 330px;
}

.about-image-box {
    opacity: 0;
    transform: scale(1.1);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.about-image-box.show {
    opacity: 1;
    transform: scale(1);
}

.tejas-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    will-change: opacity, transform;
}

.about-container h1 {
    font-family: Arial, sans-serif;
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-color);
    margin-bottom: 25px;
}

.about-container h3 {
    font-family: 'Raleway', sans-serif;
    font-weight: 200;
    font-size: 2rem;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 60px;
    position: relative;
}

.about-container h3::after {
    content: "";
    display: block;
    width: 120px;
    height: 1px;
    background-color: #888;
    margin: 30px auto 0;
}

.about-content-card p { 
    font-family: 'Raleway', sans-serif;
    font-weight: 200;
    font-size: 14px;
    line-height: 1.85;
    text-align: justify;
    color: var(--text-color);
    letter-spacing: 0.4px;
    text-transform: none;
}

.alt-year {
    font-family: 'Montserrat', sans-serif;
    font-weight: 100;
    font-size: 0.8rem;
}

#card-1 {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

#card-1.show {
    opacity: 1;
    transform: translateY(0);
}

#card-1 p {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

#card-1 p.show {
    opacity: 1;
    transform: translateY(0);
}

.fade-top {
    opacity: 0;
    transform: translateY(-30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-top.show {
    opacity: 1;
    transform: translateY(0);
}

/* .fade-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-left.show {
    opacity: 1;
    transform: translateX(0);
} */

.fade-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-right.show {
    opacity: 1;
    transform: translateX(0);
}
.client-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: fit-content;
    margin: 0 auto;
    text-align: center;
    padding-top: 30px;
    padding-bottom: 200px;
}

.client-section h1 {
    text-transform: uppercase;
    font-family: Arial, sans-serif;
    letter-spacing: 2px;
    font-size: 1.5rem;
    display: flex;
    flex-direction: column;
    line-height: 3.5rem;
    color: var(--text-color);
    position: relative;
}

.client-section h1::after {
    content: "";
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 1px;
    background-color: #888;
}

.clients-logo-section {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 50px;
    justify-content: center;
    width: 100%;
    max-width: 900px;
    margin-top: 100px;
}

.clients-logo-section img {
    height: 80px;
}

#bay-street-group img {
    height: 20px !important;
}

.dark-logo {
    filter: invert(1);
}

.client-section h1,
.clients-logo-section img {
    opacity: 0;
    transform: translateY(20px);
}

.client-section.fade-in h1,
.client-section.fade-in .clients-logo-section img {
    animation: fadeIn 0.5s ease-out forwards;
}
.client-section.fade-in .clients-logo-section img:nth-child(1) {
    animation-delay: 0.5s;
}
.client-section.fade-in .clients-logo-section img:nth-child(2) {
    animation-delay: 0.55s;
}
.client-section.fade-in .clients-logo-section img:nth-child(3) {
    animation-delay: 0.6s;
}
.client-section.fade-in .clients-logo-section img:nth-child(4) {
    animation-delay: 0.65s;
}
.client-section.fade-in .clients-logo-section img:nth-child(5) {
    animation-delay: 0.7s;
}
.client-section.fade-in .clients-logo-section img:nth-child(6) {
    animation-delay: 0.75s;
}

.client-section.fade-in .clients-logo-section img:nth-child(7) {
    animation-delay: 0.8s;
}

.client-section.fade-in .clients-logo-section img:nth-child(8) {
    animation-delay: 0.85s;
}

.client-section.fade-in .clients-logo-section img:nth-child(9) {
    animation-delay: 0.9s;
}

.client-section.fade-in .clients-logo-section img:nth-child(10) {
    animation-delay: 0.95s;
}

.clients-logo-section img:nth-child(9) {
    height: 100px !important;
}

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

/* .fade-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-right.show {
    opacity: 1;
    transform: translateX(0);
} */

@media (max-width: 768px) {
    .about-section {
        padding: 100px 15px 100px;
        min-width: auto;
        min-height: auto;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .about-container {
        width: 100%;
        max-width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 30px;
        padding: 0;
        box-sizing: border-box;
    }
    
    .card-1-wrapper {
        width: 100%;
        padding: 0;
        margin: 0;
        max-width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        box-sizing: border-box;
    }
    
    .about-image-box {
        width: 100%;
        max-width: 220px;
        height: auto;
        flex: 0 0 auto;
    }
    
    #card-1 {
        width: 100%;
        overflow-wrap: break-word;
    }
    
    .about-container h1 {
        font-size: 0.9rem;
        margin-bottom: 0;
        text-align: center;
        overflow-wrap: break-word;
    }
    
    .about-container h3 {
        font-size: 1.2rem;
        margin-bottom: 40px;
        text-align: center;
        overflow-wrap: break-word;
    }
    
    .about-container h3::after {
        width: 50px;
    }
    
    .about-content-card p {
        font-size: 0.9rem;
        line-height: 1.6;
        overflow-wrap: break-word;
    }
    
    .client-section {
        height: auto;
        padding: 0;
        margin-bottom: 150px;
    }
    
    .client-section h1 {
        font-size: 1.3rem;
        letter-spacing: 1px;
        text-align: center;
        overflow-wrap: break-word;
    }

    .clients-logo-section {
        padding-inline: 20px;
        margin-top: 30px;
        gap: 20px;
        justify-content: center;
    }
    
    .clients-logo-section img {
        height: 40px;
        width: auto;
    }

    .clients-logo-section img:nth-child(9) {
        height: 50px !important;
    }
}
