:root {
    --clrTheme100: rgb(189, 210, 246);
    --clrTheme400: rgb(119, 148, 210);
    --clrTheme900: #373a9c;
    --cltThemeOmbre: linear-gradient(to left, 
    var(--clrTheme900) 30%, var(--clrTheme100));

    --clrMain100: white;
    --clrMain900: black;

    --americanColor: rgb(46, 53, 87);
    --foresterscolor: rgb(2, 124, 137);
    --illinoiscolor: rgb(38, 106, 103);
    --aigcolor: rgb(9, 34, 124);
    --transamericacolor: rgb(232, 51, 51);
    --aetnacolor: rgb(47, 7, 64);

    --ffTheme: "Poppins", serif;
    --ffAccent: Arial, Helvetica, sans-serif; 

    --americanBGImage: ("../swiftSite/images/bgImage.png");
    --forestersBGImage: ("/images/bgImage2.png");
    --illinoisBGImage: ("/images/bgImage3.png");
    --aigBGImage: ("/images/bgImage4.png");
    --transamericaBGImage: ("/images/bgImage5.png");
    --aetnaBGImage: ("/images/bgImage6.png");
}

html {
    scroll-behavior: smooth;
    width: 100dvw;
}


*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: var(--ffTheme);
    font-weight: 400;
    font-size: clamp(.75rem, 4vw, 1.25rem);
    line-height: 1.6;
    background: var(--clrMain900);
    color: var(--clrMain100);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* Prevent scrollbar jumping */
html {
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-padding-top: 75px; /* Match your navbar height */
}

body, h1, h2, h3, h4, h5, h6 {
    font-family: "Poppins", serif;
}

/* Custom Styles for navBar */

#navbarNav {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease !important;
}

#navbarNav.show {
    opacity: 1;
    transform: translateY(0);
}

/* Disable Bootstrap's default transition */
.collapsing {
    transition: none !important;
}

#navbarNav .hover:hover {
    background-color: var(--clrTheme400);
    color: var(--clrMain900) !important;
}

.faFonts a:hover {
    color: var(--clrTheme400) !important;
}

/* Hamburger Positioning */
.navbar-toggler {
    border: 0 !important;
    padding: 15px !important;
    margin-left: auto !important; /* Force right alignment */
    order: 3; /* Ensure proper order */
    z-index: 1001;
}

/* Hamburger/X Animation */
.hamburger {
    display: block;
    position: relative;
    width: 30px;
    height: 20px;
}

.hamburger-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: white;
    transition: all .03s ease;
}

.hamburger-line.top { top: 0; }
.hamburger-line.middle { top: 8px; }
.hamburger-line.bottom { top: 16px; }

/* X Animation When Open */
.navbar-toggler[aria-expanded="true"] .hamburger-line.top {
    transform: rotate(45deg) translate(6px, 6px);
}

.navbar-toggler[aria-expanded="true"] .hamburger-line.middle {
    opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .hamburger-line.bottom {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu Full-screen Styling */

/* Mobile Styles */

@media (max-width: 991px) {
    #navbarNav {
        position: fixed;
        top: 75px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.98);
        opacity: 0;
        transform: translateY(-20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
        visibility: hidden;
        display: flex !important; /* Changed from block to flex */
        flex-direction: column;
        justify-content: center; /* Vertical centering */
        align-items: center; /* Horizontal centering */
        overflow-y: auto;
        font-size: 2rem !important;
        padding: 20px 0;
    }

    #navbarNav.show {
        opacity: 1;
        transform: translateY(0);
        visibility: visible;
    }

    /* Add these new rules */
    .navbar-nav {
        width: 100%;
        max-width: 300px; /* Optional: prevent items from stretching too wide */
        margin: auto; /* Helps with centering */
    }

    .nav-item {
        text-align: center !important;
        margin: 15px 0;
    }

    .nav-link {
        display: inline-block; /* Better for centering text */
        padding: 10px 20px !important;
    }

    /* Add these new rules */
    .faFonts.mobile-icons {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1000;
        background: rgba(0,0,0,0.9);
        padding: 0 15px;
    }

    .homelogo.order-1 {
        margin-right: auto;
    }

    .navbar-toggler.order-3 {
        margin-left: auto;
    }

    /* Adjust existing rules */
    #navbarNav {
        top: 75px; /* Match navbar height */
        z-index: 999;
    }
}

/* Desktop styles */
@media (min-width: 992px) {
    #navbarNav {
        opacity: 1 !important;
        transform: none !important;
        visibility: visible !important;
        display: flex !important;
        position: static;
        background: transparent;
    }

    .collapsing {
        display: flex !important;
        transition: none !important;
    }
}

/* .opacity-hover-off {
    background-color: rgba(0, 0, 0, .7);
}
.opacity-hover-off:hover {
    background-color: rgba(0, 0, 0, 1)
}

.nav-div {
    padding: 0 5%;
    overflow: hidden;
}

.homelogo {
    width: 100px;
    height: auto;
    display: flex;
    align-items: center;
    opacity: .8;
}

.homelogo img {
    width: 100%;
    height: 100%;
    background-size: cover;

}

.navbar-nav {
    width: 100%;
    gap: 1rem;
}

.navbar-nav .nav-link {
    color: var(--clrMain100);
    font-size: .9rem;
}

.navbar-nav .nav-link:hover {
    background-color: var(--clrTheme400);
    color: var(--clrMain900);
}

.faFonts a {
    color: var(--clrMain100);
    font-size: 1rem;
    text-decoration: none;
}

.faFonts a:hover {
    color: var(--clrTheme400);
} */

/* Custom style for header */

.homelogo {
    width: 100px;
    height: auto;
    opacity: .8;
}

.homelogo img {
    width: 100%;
    height: 100%;
}
.bg-img {
    background-image: url("/images/homepage.jpg");
    background-size: cover;
    background-position: center;
    min-height: 100dvh;
}

header {
    width: 100dvw;
    height: auto;
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.header-container {
    width: 90%;
    height: 100%;
    margin: 0 auto;
}

.shadow {
    box-shadow: 10px 10px 20px var(--clrMain100);
}

.btn {
    width: fit-content;
    font-size: 1rem !important;
    padding: .5rem 1rem;
    background-color: var(--clrTheme400);
    border: none;
}

.btn:hover {
    background-color: var(--clrMain100);
    color: var(--clrTheme400);
    text-decoration: underline;
}

.btn-bg {
    background-color: var(--clrTheme400);
    color: var(--clrMain100);
    border: none;
}

.logo {
    height: auto;
    width: 200px;
}

.btn.hover-btn:hover {
    background-color: var(--clrMain100);
    color: var(--clrTheme400);
    text-decoration: underline;
}

/* About */

.myimg {
    filter: drop-shadow(0 0 0.75rem var(--clrTheme400));
}

/* Gallery Carousel */

#gallery {
    min-width: 100dvw;
    height: auto;
}

.wrapperContainer {
    min-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    mask: linear-gradient(
        to left,
        rgba(0,0,0,0),
        rgba(0,0,0,1) 10%,
        rgba(0,0,0,1) 90%,
        rgba(0,0,0,0)
        );
}


.wrapper {
    margin-top: 1rem;
    width: 100%; 
    width: 100%;
    margin-inline: auto;
    align-items: center;
    height: 195px;
    padding: 4px;
    margin: 0 3rem;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    mask: linear-gradient(
    to left,
    rgba(0,0,0,0),
    rgba(0,0,0,1) 10%,
    rgba(0,0,0,1) 90%,
    rgba(0,0,0,0)
    );
}

.wrapper img {
    width: 110%;
    height: 110%;
    object-fit: cover;
    object-position: center;
    inset: 0;
}

@keyframes scrollLeft {
    to {
        left: -250px;
    }
}

@keyframes scrollRight {
    to {
        right: -250px;
    }
}

.itemLeft,
.itemRight {
    width: 250px;
    height: 175px;
    border-radius: .5rem;
    box-shadow: 3px 3px 3px var(--clrMain100);
    overflow: hidden;
    position: absolute;
    animation-timing-function: linear;
    animation-duration: 100s;
    animation-iteration-count: infinite;
}

.itemLeft {
    left: max(calc(250px * 8), 100%);
    animation-name: scrollLeft;
}

.itemRight {
    right: max(calc(250px * 8), -100%);
    animation-name: scrollRight;
}

.item1 {
    animation-delay: calc(100s / 8 * (8 - 1) * -1);
}

.item2 {
    animation-delay: calc(100s / 8 * (8 - 2) * -1);
}

.item3 {
    animation-delay: calc(100s / 8 * (8 - 3) * -1);
}

.item4 {
    animation-delay: calc(100s / 8 * (8 - 4) * -1);
}

.item5 {
    animation-delay: calc(100s / 8 * (8 - 5) * -1);
}

.item6 {
    animation-delay: calc(100s / 8 * (8 - 6) * -1);
}

.item7 {
    animation-delay: calc(100s / 8 * (8 - 7) * -1);
}

.item8 {
    animation-delay: calc(100s / 8 * (8 - 8) * -1);
}


/* Life and NotarySettings */

.lifeContainer, .notaryContainer {
    max-width: 500px;
    color: var(--clrMain100);
    background-color: rgba(0, 0, 0, .1);
    text-shadow: 1px 1px 3px var(--clrTheme400);
    gap: 1rem;
    border-radius: .5rem;
    height: auto;
    backdrop-filter: blur(20px);
    flex: 1 1 300px;
    margin-top: 10rem;
}

/* Life */

.bg-blue {
    background-color: var(--clrTheme100);
}

.bg-american {
    background-color: var(--americanColor);
}

.bg-foresters {
    background-color: var(--foresterscolor);
}       

.bg-illinois {
    background-color: var(--illinoiscolor);
}

.bg-aig {
    background-color: var(--aigcolor);
}

.bg-transamerica {
    background-color: var(--transamericacolor);
}

.bg-aetna {
    background-color: var(--aetnacolor);
}

/* notary */

.notarytext, .services {
    max-width: 600px;
}

/* contact */

.contactInfo a {
    padding-inline: 1rem;
}

.contactInfo a:hover {
    color: var(--clrMain900);
    text-shadow: 2px 2px 10px var(--clrMain100);
}

#contact {
    width: 100%;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-inline: auto;
    position: relative;
}

#contact button {
    border: 1px solid var(--clrMain100);
}

#contact p {
    padding-inline: 2rem;
    padding-block: 2rem;
}

#contact a {
    font-size: clamp(1rem, 4vw, 1.5rem);
}

#contact .faFonts {
    gap: 1rem;
    padding: 1rem;
    width: 100%;
    height: 50px;
}

#contact .faFonts a {
    width: 50px;
    height: 50px;
    margin-inline: auto;

}

#contact .faFonts a:hover {
    color: var(--clrTheme400);
}

/* Other */

.otherContainer:hover {
    transform: scale(1.02);
    transition: all 0.3s ease-in-out;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  }
  

/* footer */

footer {
    width: 90%;
    text-align: center;
    margin-inline: auto;
    font-size: .75rem;
}

