/* Importing other CSS files and Fonts from google fonts */
@import url("./aboutme.css");
@import url("./index.css");
@import url("./projects.css");
@import url("./blogs.css");
@import url("./achievements.css");
@import url("./CSS-Reset.css");
@import url('https://fonts.googleapis.com/css2?family=Allerta+Stencil&family=Bonheur+Royale&family=Lekton:ital,wght@0,400;0,700;1,400&family=Newsreader:ital,opsz,wght@0,6..72,200..800;1,6..72,200..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&family=Libre+Caslon+Display&display=swap');
/* Navbar Styling */

:root {
    --dark-color: #112D4E;
    --blue-color: #3F72AF;
    --light-color: #DBE2EF;
    --white-color: aliceblue;
    --green-color:  rgb(10, 140, 163);
    scroll-behavior: smooth;
}

body {
    background-color: var(--white-color);
    overflow-x: hidden;
}

nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 99;
    position: fixed;
    width: 100%;
    background-color: #112d4e79;
    padding: 10px;
    font-size: 16px;
}

#logo-link {
    text-decoration: none;
}

#me {
    display: flex;
    align-items: center;
}

#name {
    font-family: "Bonheur Royale";
    padding-left: 30px;
    border-left: 2px solid var(--light-color);
    margin-left: 20px;
    color: var(--light-color);
    font-size: 2.5em;
    font-weight: 700;
}

.logo {
    width: 3.75em;
    height: 3.75em;
    align-self: center;
}

#links {
    display: flex;
    align-items: center;
    gap: 2em;
    transition: opacity 500ms ease-in-out;
    z-index: 99;
}

#links a {
    font-size: 1.5em;
    text-decoration: none;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    padding: 10px;
    margin: 10px;
    border-radius: 25% 10%;
    color: var(--white-color);
    transition: all linear 300ms;
    overflow: hidden;
    display: inline-block;
    vertical-align: middle;
    -webkit-transform: perspective(1px) translateZ(0);
    transform: perspective(1px) translateZ(0);
    box-shadow: 0 0 1px rgba(0, 0, 0, 0);
    position: relative;
    -webkit-transition-property: color;
    transition-property: color;
    -webkit-transition-duration: 0.3s;
    transition-duration: 0.3s;
}

#links a:hover {
    color: var(--blue-color);
    transition: all linear 300ms;
}

#links a::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white-color);
    -webkit-transform: scaleX(0);
    transform: scaleX(0);
    -webkit-transform-origin: 50%;
    transform-origin: 50%;
    -webkit-transition-property: transform;
    transition-property: transform;
    -webkit-transition-duration: 0.3s;
    transition-duration: 0.3s;
    -webkit-transition-timing-function: ease-out;
    transition-timing-function: ease-out;
}

#links a:hover::before {
    -webkit-transform: scaleX(1);
    transform: scaleX(1);
}

#menu {
    width: 3em;
    height: 3em;
    display: none;
}

.show {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

section h2 {
    font-family: "Lekton", monospace;
    font-size: 3.75em;
    color: var(--blue-color);
    text-align: center;
    margin-bottom: 2rem;
}

main section {
    margin: 50px 0;
    scroll-margin: 100px;
}

/* Footer Styling */

footer {
    background-color: var(--dark-color);
    width: 100%;
    color: var(--light-color);
    font-size: 20px;
    padding: 10px 30px;
    gap: 6em;
    display: flex;
    flex-direction: row;
}

#footer-text,
#contacts {
    display: flex;
    align-items: center;
    gap: 1.8em;
    flex: 1;
    justify-content: center;
}

i {
    font-size: 2.5em;
    color: black;
    transition: all 300ms ease-in-out;
}

i:hover {
    transform: scale(120%);
}

#email:hover {
    color: aliceblue;
}

#linkedin:hover {
    color: #0a66c2;
}

#facebook:hover {
    color: #0866ff;
}

#instagram:hover {
    background-image: linear-gradient(45deg,
            hsl(55deg 100% 50%) 0%,
            hsl(49deg 100% 50%) 0%,
            hsl(42deg 100% 50%) 2%,
            hsl(35deg 100% 52%) 5%,
            hsl(24deg 100% 57%) 10%,
            hsl(13deg 100% 60%) 18%,
            hsl(0deg 93% 61%) 27%,
            hsl(346deg 83% 51%) 38%,
            hsl(336deg 100% 42%) 50%,
            hsl(331deg 100% 38%) 63%,
            hsl(324deg 100% 32%) 74%,
            hsl(314deg 100% 27%) 84%,
            hsl(298deg 100% 21%) 92%,
            hsl(277deg 100% 21%) 97%,
            hsl(240deg 100% 20%) 100%);
    background-clip: text;
    color: transparent;
}

#github:hover {
    color: #1a1e22;
}

#contacts a img {
    width: 2.5em;
    height: 2.5em;
    object-fit: contain;
    transition: transform 300ms ease-in-out;
}

#contacts a img:hover {
    transform: scale(120%);
    transition: transform 300ms ease-in-out;
}

/* Media Queries for different devices */

/* Small Laptops and Tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    nav {
        font-size: 14px;
    }

    footer {
        font-size: 14px;
    }
}

/* IPads */
@media (min-width: 481px) and (max-width: 768px) {
    nav {
        font-size: 14px;
    }

    #links {
        opacity: 0;
        transform: translateY(-300px);
        position: absolute;
        flex-direction: column;
        border-radius: 10px;
        top: 60px;
        right: 5%;
        background-color: black;
        gap: 1em;
    }

    #links a {
        font-size: 1em
    }

    #menu {
        display: block;
        position: absolute;
        right: 10%;
    }

    footer {
        font-size: 12px;
        flex-direction: column;
        gap: 2em;
    }
}

/* Phones */
@media (max-width: 480px) and (min-width: 321px) {
    nav {
        font-size: 10px;
        justify-content: flex-start;
    }

    #me {
        margin-left: 20px;
    }

    #links {
        opacity: 0;
        transform: translateY(-300px);
        position: absolute;
        flex-direction: column;
        border-radius: 10px;
        top: 60px;
        right: 5%;
        background-color: black;
        gap: 1em;
    }

    #links a {
        font-size: 1.2em
    }

    #menu {
        display: block;
        position: absolute;
        right: 10%;
    }

    footer {
        flex-direction: column;
        font-size: 10px;
        gap: 2em;
    }
}

@media (max-width: 320px) {
    nav {
        font-size: 8px;
        justify-content: flex-start;
    }

    #me {
        margin-left: 10px;
    }

    #links {
        opacity: 0;
        transform: translateY(-300px);
        position: absolute;
        flex-direction: column;
        border-radius: 10px;
        top: 60px;
        right: 5%;
        background-color: black;
        gap: 1em;
    }

    #links a {
        font-size: 1.2em
    }

    #menu {
        display: block;
        position: absolute;
        right: 10%;
    }

    footer {
        flex-direction: column;
        font-size: 10px;
        gap: 2em;
    }
}