@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");

:root {
    --thm-font: "Inter", sans-serif;
    --thm-font-2: "reeyregular";
    --thm-base: #ff7a00;
    --thm-base-rgb: 255, 122, 0;
    --thm-primary: #182978;
    --thm-primary-rgb: 24, 41, 120;
    --thm-gray: #515151;
    --thm-gray-rgb: 81, 81, 81;
    --thm-white: #ffffff;
    --thm-white-rgb: 255, 255, 255;
    --thm-black: #202020;
    --thm-black-rgb: 32, 32, 32;
    --thm-gray-bg: #f5f5f5;
    --thm-main-bg: #202020;
}

:root {
    --swiper-theme-color: #007aff;
}

:root {
    --bs-blue: #0d6efd;
    --bs-indigo: #6610f2;
    --bs-purple: #6f42c1;
    --bs-pink: #d63384;
    --bs-red: #dc3545;
    --bs-orange: #fd7e14;
    --bs-yellow: #ffc107;
    --bs-green: #198754;
    --bs-teal: #20c997;
    --bs-cyan: #0dcaf0;
    --bs-white: #fff;
    --bs-gray: #6c757d;
    --bs-gray-dark: #343a40;
    --bs-primary: #0d6efd;
    --bs-secondary: #6c757d;
    --bs-success: #198754;
    --bs-info: #0dcaf0;
    --bs-warning: #ffc107;
    --bs-danger: #dc3545;
    --bs-light: #f8f9fa;
    --bs-dark: #212529;
    --bs-font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif,
        "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas,
        "Liberation Mono", "Courier New", monospace;
    --bs-gradient: linear-gradient(180deg,
            rgba(255, 255, 255, 0.15),
            rgba(255, 255, 255, 0));
}

* {
    box-sizing: border-box;
}

* {
    margin: 0;
}

body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    font-family: var(--thm-font);
}

body.no-scroll {
    overflow: hidden;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

input,
button,
textarea,
select {
    font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

#root,
#__next {
    isolation: isolate;
}

.repo-first {
    width: 100%;
    height: 100vh;
    position: absolute;
    top: 0;
    left: -100%;
    background-color: rgba(0, 0, 0, 0.643);
    z-index: 10;
    transition: left 0.3s ease-in;
}


/* THIS IS THE SMALLER NAV AT THE TOP */

.first-nav {
    height: 60px;
    background-color: var(--thm-gray-bg);
    display: flex;
    justify-content: space-between;

    a {
        text-decoration: none;
        color: var(--thm-black);
        cursor: pointer;
    }

    a:hover {
        color: var(--thm-base);
    }

    .left {
        width: 40%;
        display: flex;
        align-items: center;
        padding: 0 20px;
        justify-content: space-around;
        font-family: var(--thm-font);
        background-color: var(--thm-gray-bg);
        font-weight: 500;
    }

    .right {
        width: 42%;
        display: flex;
        align-items: center;
        padding: 0 20px;
        font-family: var(--thm-font);
        background-color: var(--thm-gray-bg);

        .num a {
            margin-left: 10px;
            font-weight: 700;
        }

        .socials {
            display: flex;
            padding-left: 40px;

            .twitter,
            .facebook,
            .instagram,
            .youtube {
                width: 40px;
                height: 40px;
                background-color: var(--thm-white);
                border-radius: 50%;
                margin-left: 10px;
                display: flex;
                justify-content: center;
                align-items: center;

                i {
                    font-size: 20px;
                    color: var(--thm-gray);
                    margin: 0;
                }
            }

            .twitter:hover,
            .facebook:hover,
            .instagram:hover,
            .youtube:hover {
                background-color: var(--thm-primary);
                color: var(--thm-white);
            }

            .twitter:hover i,
            .facebook:hover i,
            .instagram:hover i,
            .youtube:hover i {
                color: var(--thm-white);
            }
        }
    }
}

/* THE SECOND NAV BEGINS HERE */
.second-nav {
    width: 100%;
    height: 150px;
    display: flex;
    border-bottom: 2px solid var(--thm-gray-bg);
    cursor: pointer;

    .logo-section {
        width: 25%;
        height: 100%;
        background-color: var(--thm-primary);
        border-right: 6px solid var(--thm-base);
        align-items: center;
        padding-top: 20px;

        img {
            width: 250px;
            margin: auto;
        }
    }

    .menu-section {
        width: 45%;
        height: 100%;
        display: flex;
        align-items: center;
        font-family: var(--thm-font);
        padding-left: 25px;

        ul {
            list-style: none;
            padding: 0;
        }

        li {
            display: inline-block;
            margin: 0 20px;
            font-size: 18px;
            font-weight: bold;
            cursor: pointer;
            text-decoration: none;
        }

        a {
            text-decoration: none;
            color: var(--thm-black);
        }

        a:hover {
            color: var(--thm-base);
        }
    }

    .signup-login {
        width: 30%;
        height: 100%;
        display: flex;
        font-family: var(--thm-font);
        text-align: center;
        padding-right: 5px;

        .login {
            width: 35%;
            height: 65px;
            font-size: 18px;
            font-weight: bold;
            background-color: var(--thm-primary);
            color: var(--thm-white);
            border: none;
            margin: auto;
            justify-content: space-between;
            padding: 20px;
            cursor: pointer;
            z-index: 1;

            a {
                text-decoration: none;
                color: var(--thm-white);
                background-color: var(--thm-primary);
                padding: 20px;
            }
        }

        .login {
            background-color: var(--thm-primary);
            position: relative;
            overflow: hidden;
            /* Prevent content from spilling out during animation */
            transition: background-color 0.3s ease;

            i {
                margin-left: 5px;
                background-color: #869af5;
                border-radius: 100px;
                padding: 5px 5px;
            }
        }

        .login::after {
            content: "";
            position: absolute;
            top: 0;
            right: -100%;
            width: 100%;
            height: 100%;
            background-color: var(--thm-black);
            transition: right 0.7s ease;
            z-index: -1;
        }

        .login:hover::after {
            right: 0;
        }

        .login i {
            margin-left: 10px;
            /* Space between the text and the icon */
            transition: color 0.1s ease;
            /* Smooth transition for icon color */
        }

        .login:hover i {
            background-color: #515151;
        }

        .signup {
            width: 55%;
            height: 65px;
            font-size: 18px;
            font-weight: bold;
            background-color: var(--thm-base);
            /* Default background */
            color: var(--thm-white);
            margin: auto;
            border: none;
            justify-content: space-between;
            padding: 20px;
            cursor: pointer;
            position: relative;
            overflow: hidden;
            transition: background-color 0.3s ease;
            /* Optional: smooth background color change */
            z-index: 1;

            i {
                margin-left: 10px;
                background-color: #e6a466;
                border-radius: 100px;
                padding: 5px 5px;
            }
        }

        .signup::after {
            content: "";
            position: absolute;
            top: 0;
            right: -100%;
            /* Initially off-screen */
            width: 100%;
            height: 100%;
            background-color: var(--thm-black);
            /* The color you want to slide in */
            transition: right 0.7s ease;
            /* Smooth transition for sliding */
            z-index: -1;
        }

        .signup:hover::after {
            right: 0;
            /* When hovering, slide the background in */
        }

        .signup i {
            margin-left: 10px;
            /* Space between the text and the icon */
            transition: color 0.3s ease;
            /* Smooth transition for icon color */
        }

        .signup:hover {
            background-color: #515151;
            /* Background color on hover */
        }

        .signup:hover i {
            background-color: #515151;
            /* Icon color on hover */
        }
    }
}

/* THIS IS THE ONE THAT DROPS DOWN WHEN I SCROLL */
.nav-bar {
    left: 0;
    width: 100%;
    height: 100px;
    background-color: var(--thm-gray-bg);
    display: flex;
    border-bottom: 1px solid var(--thm-gray-bg);
    transition: top 0.3s ease-in-out;
    /* Slide effect */
    display: none;
    position: fixed;
    top: -120px;
    /* Position it off-screen */
    z-index: 10;

    .logo {
        width: 40%;
        height: 100%;
        background-color: var(--thm-primary);
        border-right: 6px solid var(--thm-base);
        display: flex;
        padding-left: 70px;
        align-items: center;

        a {
            text-decoration: none;
        }

        .icon {
            width: 80px;
            height: 80px;
        }

        .logo-name {
            font-family: var(--thm-font);
            color: var(--thm-white);
            margin-left: 10px;
            margin-bottom: 20px;

            h2 {
                font-size: 50px;
            }

            p {
                font-size: 16px;
                line-height: 0.5px;
            }
        }
    }

    .menu {
        width: 60%;
        height: 100%;
        background-color: var(--thm-white);
        text-align: right;
        padding-right: 80px;
        padding-top: 50px;
        font-family: var(--thm-font);

        ul {
            list-style: none;
            padding: 0;
        }

        li {
            display: inline-block;
            margin: 0 20px;
            font-size: 18px;
            font-weight: bold;
            cursor: pointer;
            text-decoration: none;
        }

        a {
            text-decoration: none;
            color: var(--thm-black);
        }

        a:hover {
            color: var(--thm-base);
        }
    }
}

/* When the nav-bar becomes visible */
.nav-bar.active {
    top: 0;
    /* Position it at the top of the viewport */
}

/* ENDS HERE */

.toggler {
    width: 50px;
    height: 100%;
    font-size: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-right: 30px;
    color: var(--thm-base);

    i:hover {
        color: var(--bs-gray-dark);
    }
}

.repo-nav {
    width: 25%;
    height: 100vh;
    position: absolute;
    top: 0;
    left: -100%;
    background-color: var(--thm-main-bg);
    z-index: 20;
    transition: left 0.7s ease-in-out;


    .repo-logo {
        width: 100%;
        height: 120px;
        /* background-color: #182978; */
        display: flex;

        .nav-logo {
            width: 80%;
            height: 100%;
            padding: 20px 5px 5px 20px;


            img {
                width: 100%;
            }
        }

        .x-icon {
            width: 20%;
            height: 100%;
            display: flex;
            justify-content: flex-end;
            padding: 10px;
            font-size: 40px;

            i {
                color: var(--thm-gray-bg);
                padding: 5px;
            }

            i:hover {
                color: var(--bs-gray);
            }

        }
    }

    .search-container {
        width: 90%;
        height: 50px;
        margin: auto;
        display: flex;


        .search-input {
            width: 80%;
            height: 100%;


            input {
                width: 100%;
                height: 100%;
                border: none;
            }

            input:focus {
                border: none;    
                outline: none;  
              }
        }

        .search-icon {
            width: 20%;
            height: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 25px;
            background-color: var(--thm-base);

            a {
                text-decoration: none;
                color: var(--bs-white);
            }
        }

        .search-icon:hover {
            background-color: var(--bs-gray);
        }
    }

    .menu-container {
        width: 90%;
        height: fit-content;
        margin-top: 30px;
        margin-left: auto;
        margin-right: auto;
        border-top: 1px solid var(--bs-gray);

        nav a {
            text-decoration: none;
            display: block;
            /* margin-bottom: 20px; */
            font-size: 18px;
            font-weight: 600;
            color: var(--thm-white);
            border-bottom: 1px solid var(--bs-gray);
            padding: 10px;
        }

    }

    .contact-container{
        width: 90%;
        height: fit-content;
        /* background-color: #0dcaf0; */
        margin-top: 30px;
        margin-left: auto;
        margin-right: auto;


        .mail-container{
            width: 100%;
            height: 50px;
            display: flex;
            align-items: center;
            color: var(--thm-white);
            font-weight: 700;

            p{
                transition: color 0.5s ease;
            }

            p:hover{
                color: var(--thm-base);
            }

            i{
                margin-right: 10px;
                margin-left: 10px;
                padding: 5px;
                color: var(--thm-white);
                background-color: var(--bs-gray);
            }
        }

        .phone-container{
            width: 100%;
            height: 50px;
            display: flex;
            align-items: center;
            color: var(--thm-white);
            font-weight: 700;

            p{
                transition: color 0.5s ease;
            }

            p:hover{
                color: var(--thm-base);
            }

            i{
                margin-right: 10px;
                margin-left: 10px;
                padding: 5px;
                color: var(--thm-white);
                background-color: var(--bs-gray);
            }
        }
    }

    .socials-container{
        width: 90%;
        height: fit-content;
        display: flex;
        margin-top: 35px;
        margin-left: auto;
        margin-right: auto;


        a {
            text-decoration: none;
        }


        .twitter,
        .facebook,
        .instagram,
        .youtube {
            width: 40px;
            height: 40px;
            background-color: var(--thm-white);
            border-radius: 50%;
            margin-left: 10px;
            display: flex;
            justify-content: center;
            align-items: center;
            transition: background-color 0.5s ease-in-out;

            i {
                font-size: 20px;
                color: var(--thm-gray);
                margin: 0;
            }
        }

        .twitter:hover,
        .facebook:hover,
        .instagram:hover,
        .youtube:hover {
            background-color: var(--thm-base);
            color: var(--thm-white);
            background-color: scale(1.2);
        }

        .twitter:hover i,
        .facebook:hover i,
        .instagram:hover i,
        .youtube:hover i {
            color: var(--thm-white);
        }

    }
}



/* When the nav bar is visible */
.repo-nav.open {
    left: 0;
    /* Slide in from the left */
}

/* When the opacity page is visible */
.repo-first.open {
    left: 0;
    /* Slide in from the left */
}


