/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,800;1,800&family=Orbitron:wght@700&display=swap');

/*=============== VARIABLES CSS ===============*/
:root {
    --header-height: 3.5rem;

    /*========== Colors ==========*/
    /*Color mode HSL(hue, saturation, lightness)*/
    --first-color: #ef5123;
    --title-color: hsl(0, 0%, 0%);
    --text-color: hsl(230, 12%, 40%);
    --body-color: hsl(230, 100%, 98%);
    --container-color: hsl(230, 100%, 97%);
    --border-color: hsl(230, 25%, 80%);

    /*========== Font and typography ==========*/
    --body-font: "Montserrat", sans-serif;
    --h2-font-size: 1.25rem;
    --normal-font-size: .938rem;

    --secondary-font: "Syne", sans-serif;

    /*========== Font weight ==========*/
    --font-regular: 400;
    --font-medium: 500;
    --font-semi-bold: 600;

    /*========== z index ==========*/
    --z-fixed: 100;
    --z-modal: 1000;
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1023px) {
    :root {
        --h2-font-size: 1.5rem;
        --normal-font-size: 1rem;
    }
}

/*=============== BASE ===============*/
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: var(--body-color);
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
    max-width: 1120px;
    margin-inline: 1.5rem;
}

.main {
    position: relative;
    height: 100vh;
}

.main__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: -1;
}

/*=============== HEADER & NAV ===============*/
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--body-color);
    box-shadow: 0 2px 16px hsla(230, 75%, 32%, .15);
    z-index: var(--z-fixed);
}

.nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--secondary-font);
}

.nav__logo {
    transition: color .4s;
    width: 100px;
}

.nav__actions {
    display: flex;
    align-items: center;
    column-gap: 1rem;
}

.nav__toggle,
.nav__close {
    font-size: 1.25rem;
    color: var(--title-color);
    cursor: pointer;
    transition: color .4s;
}

:is(.nav__logo, .nav__toggle, .nav__link):hover {
    color: var(--first-color);
}

/* Navigation for mobile devices */
@media screen and (max-width: 1023px) {
    .nav__menu {
        position: fixed;
        top: -100%;
        left: 0;
        background-color: var(--body-color);
        box-shadow: 0 8px 16px hsla(230, 75%, 32%, .15);
        width: 100%;
        padding-block: 4.5rem 4rem;
        transition: top .4s;
    }

    .nav__logo {
        transition: color .4s;
        width: 60px;
    }
}

.nav__list {
    display: flex;
    flex-direction: column;
    row-gap: 2.5rem;
    text-align: center;
}

.nav__link {
    color: var(--title-color);
    font-weight: var(--font-semi-bold);
    transition: color .4s;
}

.nav__close {
    position: absolute;
    top: 1.15rem;
    right: 1.5rem;
}

/* Show menu */
.show-menu {
    top: 0;
}


/*=============== BREAKPOINTS ===============*/

/* For large devices */
@media screen and (min-width: 1023px) {
    .nav {
        height: calc(var(--header-height) + 2rem);
        column-gap: 3rem;
    }

    .nav__close,
    .nav__toggle {
        display: none;
    }

    .nav__menu {
        margin-left: auto;
    }

    .nav__list {
        flex-direction: row;
        column-gap: 3rem;
    }
}

@media screen and (min-width: 1150px) {
    .container {
        margin-inline: auto;
    }
}

.row {
    display: flex;
    flex-wrap: wrap;
}

ul {
    list-style: none;
}

.footer {
    padding: 70px 0;
    font-family: var(--secondary-font);
}

.footer-col img {
    width: 60%;
    margin-left: 30px;
}

.footer-col p {
    color: #6a6a6a;
}


.footer-col {
    width: 25%;
    padding: 0 15px;
}

.footer-col h4 {
    font-size: 20px;
    color: #000000;
    text-transform: capitalize;
    margin-bottom: 35px;
    font-weight: 700;
    position: relative;
}

.footer-col h4::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    background-color: #ef5123;
    height: 2px;
    box-sizing: border-box;
    width: 50px;
}

.footer-col ul li:not(:last-child) {
    margin-bottom: 10px;
}

.footer-col ul li a {
    font-size: 16px;
    text-transform: capitalize;
    color: #ffffff;
    text-decoration: none;
    font-weight: 300;
    color: #6a6a6a;
    display: block;
    transition: all 0.3s ease;
}

.footer-col ul li a:hover {
    color: #ef5123;
    padding-left: 8px;
}

.footer-col .social-links a {
    display: inline-block;
    height: 40px;
    width: 40px;
    background-color: #6a6a6a;
    margin: 0 10px 10px 0;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    color: #ffffff;
    transition: all 0.5s ease;
}

.footer-col .social-links a:hover {
    color: #24262b;
    background-color: #ef5123;
}

/*responsive*/
@media (max-width: 767px) {
    .row {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .footer-col {
        width: 100%;
        margin-bottom: 30px;
    }

    .footer-col img {
        margin: 0 auto;
        display: block;
    }

    .footer-col h4::before {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        background-color: #ef5123;
        height: 2px;
        width: 50px;
    }
}


@media(max-width: 574px) {
    .footer-col {
        width: 100%;
    }
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: var(--text-color);
    font-size: 14px;
    position: relative;
}

.footer-bottom .disclaimer {
    position: relative;
    display: inline-block;
    margin-left: 8px;
    cursor: pointer;
    color: #00c6ff;
    font-weight: bold;
}

.footer-bottom .disclaimer:hover {
    color: #007bff;
}

/* Tooltip box */
.footer-bottom .tooltip {
    visibility: hidden;
    width: 280px;
    background-color: rgba(0, 0, 0, 0.85);
    color: #fff;
    text-align: left;
    padding: 10px 15px;
    border-radius: 8px;
    position: absolute;
    bottom: 125%;
    /* above the icon */
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 13px;
    line-height: 1.4;
    z-index: 10;
}

/* Arrow under tooltip */
.footer-bottom .tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.85) transparent transparent transparent;
}

/* Show tooltip on hover */
.footer-bottom .disclaimer:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

/* Designed & Developed line */
.footer-bottom .designer {
    margin-top: 10px;
    font-size: 13px;
    color: #aaa;
}

.footer-bottom .designer a {
    color: #00c6ff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.footer-bottom .designer a:hover {
    color: #007bff;
}

@media (max-width: 550px) {
    .footer-bottom .tooltip {
        right: 0;
        left: auto;
        transform: none;
        max-width: 90vw;
    }

    .footer-bottom .tooltip::after {
        left: auto;
        right: 20px;
        transform: none;
    }
}