:root { --shadow-small: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); --shadow-large: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); --bg-color: #0a1f33 ; --second-bg-color: #ffffff; --third-bg-color: #0b253d; --border-color: #666b71; --text-color: #fff; --main-color: #233361; --hover-color: red; } @font-face { font-family: poppins; src: url(../font/poppins.ttf); } ::-webkit-scrollbar { width: 10px; background: #e6f4ff; } ::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--main-color), red); border-radius: 10px; } ::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, var(--main-color), red); } ::-webkit-scrollbar-track { background: #d7eefc; border-radius: 10px; } * { scrollbar-width: thin; scrollbar-color: #008cff #d7eefc; } *, *::before, *::after { padding: 0; margin: 0; box-sizing: border-box; list-style: none; list-style-type: none; text-decoration: none; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; } html { font-size: 100%; box-sizing: inherit; scroll-behavior: smooth; } @media print { html, body { display: none; } } html, body { font-size: 1rem; font-weight: 400; line-height: 1.5; background: var(--text-color); -webkit-user-select: none; -moz-user-select: none; user-select: none; font-family: poppins; scroll-behavior: smooth; font-weight: bolder; overflow-x: none; } .error_contact { border: 1px solid var(--main-color) !important; } .active-page { color: var(--hover-color) !important; } .active-page .arrow-icon::before { border-color: var(--hover-color); } #flag_text{ display: flex; align-items: center; } #flags_menu{ width: 30px; height: 15px; padding-right: 5px; } // sub menu problem #sub_menu_row_prblm{ display: grid; grid-template-columns: 1fr 1fr; justify-content: space-between; } @media(max-width: 1050px){ #sub_menu_row_prblm{ display: flex; flex-wrap: wrap !important; } } // something new for arrow \ /* ===== ARROW ICON (▶ → ▼) ===== */ .arrow-icon { position: relative; width: 10px; height: 10px; margin-left: 6px; display: inline-block; transition: transform 0.35s ease; } .arrow-icon::before { content: ""; position: absolute; top: 50%; left: 50%; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translate(-50%, -50%) rotate(-45deg); /* ▶ */ transition: transform 0.35s ease; } /* Desktop hover */ @media (min-width: 1051px) { .menu-item-child:hover > a .arrow-icon { transform: rotate(90deg); /* ▼ */ } } /* Mobile click */ .menu-item-child.active > a .arrow-icon { transform: rotate(90deg); /* ▼ */ } // sub menu problem .header_top{ width: 100%; // background-color: var(--background-color); .social_contact_box{ .contact_social{ display: flex; justify-content: space-between; color: black; max-width: 1300px; align-items: center; gap: 20px; margin: 0 auto; padding: 5px 20px; border-bottom: 1px solid black; height: 40px; .contact{ display: flex; gap: 20px; color: var(--main-color); .number{ transition: all .4s ease; &:hover{ color: red; } } .email{ transition: all .4s ease; &:hover{ color: red; } } } .social{ a{ color: var(--main-color); .svg-inline--fa{ color: var(--main-color); transition: all .4s ease; &:hover{ color: red; } } transition: all .4s ease; &:hover{ color: red !important; } } } } } } // navbar section start .header { position: relative; top: 0; left: 0; width: 100%; height: auto; z-index: 100; margin: 0 auto; padding: 10px 0px; background-color: var(--background-color); // box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.3); .container-menu-top { max-width: 1300px; padding-right: 15px; padding-left: 15px; margin-right: auto; margin-left: auto; } &.sticky { position: fixed; top: 0; box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.3); transition: 0.5s; // padding: 15px 0px; background-color: #fff; z-index: 100; } .wrapper { display: flex; justify-content: space-between; align-items: center; gap: 2rem; max-width: 100%; height: auto; margin: 0 auto; padding: 5px 0; .logo-part .logo-img img { height: 65px; width: auto; } } .menu > .menu-item { position: relative; display: inline-block; margin: 0 0.75rem; > a { display: block; font-family: inherit; font-size: 20px; font-weight: 500; line-height: inherit; padding: 1rem 0; border: none; outline: none; color: black; text-transform: capitalize; transition: all 0.35s ease; font-weight: bold; .expand { position: relative; display: inline-block; width: 0.75rem; height: 0.75rem; margin-left: 0.35rem; pointer-events: none; border: none; outline: none; &:before, &:after { position: absolute; box-sizing: inherit; content: ""; top: 50%; left: 50%; width: 100%; height: 2px; background: black; transform: translate(-50%, -50%); transition: all 0.35s ease; } } } &:hover > a { color: var(--hover-color); .expand { &::before, &::after { background: var(--hover-color); } } } > { a .expand::after { transform: translate(-50%, -50%) rotate(-90deg); } .sub-menu { .sub_menu_row{ display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 10px; .sub_menu_col{ > .menu-item { .sub_sub_menu{ > .menu-item{ padding-left: 21px; > a{ color: rgb(107, 107, 107); font-weight: 100; transition: all 0.35s ease; &:hover{ color: var(--hover-color); } } } } > a { &:hover { color: var(--hover-color); } display: block; font-family: inherit; font-size: 1rem; font-weight: bolder; line-height: inherit; padding: 0.5rem 1.25rem; color: black; text-transform: capitalize; transition: all 0.35s ease; } display: block; } } } position: absolute; top: 100%; left: -1rem; width: 600px; height: auto; padding: 0.75rem 0; border: none; outline: none; opacity: 0; visibility: hidden; border-top: 3px solid var(--main-color); background: var(--second-bg-color); box-shadow: var(--shadow-medium); transform: translateY(1rem); transition: all 0.35s ease; } } } .burger { position: relative; cursor: pointer; display: none; width: 1.75rem; height: 1rem; margin-top: -0.25rem; outline: none; opacity: 0; visibility: hidden; background: none; transform: rotate(0deg); transition: all 0.35s ease; left: -15px !important; } .burger-line { position: absolute; display: block; width: 100%; height: 3px; left: 0; border: none; outline: none; opacity: 1; border-radius: 0.25rem; background: var(--main-color); transform: rotate(0deg); transition: all 0.25s ease; &:nth-child(1) { top: 0; } &:nth-child(2), &:nth-child(3) { top: 0.5rem; } &:nth-child(4) { top: 1rem; } } .overlay { position: fixed; top: 0; left: 0; height: 100%; width: 100%; z-index: 100; opacity: 0; visibility: hidden; background: rgba(0, 0, 0, 0.65); transition: all 0.35s ease; } } #logo-part { display: none ; color: var(--main-color); } #container-menu-top-row{ display: flex; justify-content: space-between; flex-wrap: wrap; } #brand_logo img{ height: 65px; width: auto; } #problem_align_center{ display: flex; align-items: center; } #hire_me{ background-color: var(--main-color); padding: 10px 20px; border-radius: 8px; transition: all .4s ease-in-out; border: 2px solid var(--main-color); a{ color: white; text-decoration: none; transition: all .5s ease-in-out; font-weight: bold; } &:hover{ border: 2px solid var(--hover-color); background-color: transparent; } &:hover a{ color: var(--hover-color); } } // navbar section end // media quiery start @media (min-width: 1051px) { .header .navbar .closed-menu { position: absolute; display: none; top: 1rem; right: 0.5rem; justify-content: center; cursor: pointer; width: 4rem; height: 4rem; border: none; outline: none; background: none; } .header .menu > .menu-item-child:hover > .sub-menu { display: block; opacity: 1; visibility: visible; transform: translateY(0); width: 600px; } .header .menu > .menu-item-child:hover > a .expand::after { transform: translate(-50%, -50%) rotate(0deg); } } @media (max-width: 1050px) { .header .menu > .menu-item-child:hover > .sub-menu .sub_menu_row { display: grid; grid-template-columns: 1fr; flex-wrap: wrap !important; } #container-menu-top-row{ display: grid; grid-template-columns: auto auto; align-items: center; } #problem_align_center{ display: none; } #logo-part{ display: block; } .header .container-menu-top .wrapper{ display: flex; justify-content: space-between; } .header .overlay.active { display: block; opacity: 1; visibility: visible; } .header .navbar { position: fixed; top: 0; left: -100%; width: 75%; height: 100%; z-index: 999; opacity: 0; overflow-y: auto; visibility: hidden; background: black; box-shadow: var(--shadow-medium); transition: all 0.5s ease; } .header .navbar.active { left: 0rem; opacity: 1; visibility: visible; } .header .navbar .closed-menu { position: absolute; display: flex; top: 1rem; right: 1rem; width: 2.5rem; height: auto; justify-content: center; align-items: center; } .header .navbar .closed-menu #closed-menu { color: var(--main-color); font-size: 30px; text-align: center; } .header .menu { width: 100%; height: auto; margin-top: 4rem; } .header .menu > .menu-item { display: block; margin: 0; } .header .menu > .menu-item-child > a { display: flex; justify-content: space-between; align-items: center; } .header .menu > .menu-item > a { padding: 0.625rem 1.25rem; color: white; } .header .menu > .menu-item > a .expand::before, .header .menu > .menu-item > a .expand::after { background: white; } .header .menu > .menu-item-child.active > a .expand:after { transform: translate(-50%, -50%) rotate(0deg); } .header .menu > .menu-item > .sub-menu { position: relative; top: auto; left: auto; width: 100%; max-height: 0; padding: 0px; border: none; outline: none; opacity: 1; overflow: hidden; visibility: visible; background: transparent; box-shadow: none; transform: translateY(0px); } .header .menu > .menu-item > .sub-menu > .menu-item > a { padding: 0.625rem 2rem; color: white; } .header .menu .menu-item .sub-menu .sub_menu_row .sub_menu_col .menu-item a{ color: white; } .header .burger { display: block; opacity: 1; visibility: visible; } } @media(max-width: 600px){ #brand_logo img{ width: 200px; height: auto; } .header{ zoom: 88%; } .divide , .email{ display: none; } .header_top{ zoom: 90%; } } // media quiery end