/**-----------------------------------------------------------
** Project Name: Al-Ezzi | Web Developer
** Version: 1.0
-------------------------------------------------------------*/


/*-----------------------------------------------------------
    0  Boarder Map
    1  General Styles
    2  Typography
    3  Buttons & Links 
    4  Header
    5  Services
    6  About  
    7  Portfolio
    8  Blog
    9  Contact
    10 Footer
    11 Responsive 
-------------------------------------------------------------*/

/*-----------------------------------------------------------
    0. Boarder Map 
-------------------------------------------------------------*/
/* nav{
  outline: yellow solid ;
} */
/* .hero-btns{
  outline: #314584 dotted;
} */
/* .contact-btn button{
  outline: dotted pink;
} */
/* .contact-btn i{
  outline: dotted olive 7px;
  background-color: red;
} */
/* .row{
  outline: green solid;
} */
/* .service-box{
  outline: pink solid;
} */
/* .services{
  outline: red solid;
} */
/* img{
  outline:blue solid;
} */
/* .about{
  outline: magenta solid;
} */
/* .work-box{
  outline: orange solid;
} */
/* .photobox__previewbox{
outline: indigo dotted;
} */
/* .photobox__preview{
  outline: tomato dotted;
} */
/* .blog {
  outline: silver double;
} */
/*-----------------------------------------------------------
    1. General Styles 
-------------------------------------------------------------*/
* {
  margin: 0;
  padding: 0;
}
:root {
  --main-color1: #FF3946;
  --main-color2: #314584;
  --main-color3: #fff;
  --main-color4: #6E757A;
  --main-color5: rgba(28,31,33,0.15);
  --main-color6: #F4FAFE;
  --main-color7: #457b9d8e;
  --shadow: 3px 0px 7px 4px;
}
/*! source https://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
html {
  box-sizing: border-box;
}
*, *:before, *:after {

  box-sizing: inherit;
}
a {
  font-weight: 600;
  color: var(--main-color2);
  text-decoration: none;
  letter-spacing: 1px;
  position: relative;
}
a:focus,
a:hover {
  color: rgba(44, 44, 44, 0.8);
  text-decoration: none;
}
img ,svg{
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--main-color2);
  font-weight: 600;
  letter-spacing: 1px;
}
:active,
:focus {
  outline: none ;
}
/*-----------------------------------------------------------
  2. Typography 
------------------------------------------------------------*/
body {
  color: var(--main-color2);
  font-family: 'Work Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  overflow-x: hidden; /**https://www.w3schools.com/cssref/css3_pr_overflow-x.asp*/
  transition: opacity 1s;
  min-width: 330px;
}
h1 {
  font-size: 4.4rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 2.5rem;
  line-height: 3.5rem;
  margin-bottom: 50px;
}
.about h2 {
  margin-bottom: 25px;
}
h3 {
  font-size: 1.9rem;
  line-height: 2.5rem;
  margin-bottom: 15px;
}
h4 {
  font-size: 24px;
}

h5 {
  font-size: 1rem;
  color: var(--main-color1);
}
h6 {
  font-size: 1rem;
  margin-bottom: 10px;
}
.about p {
  color: var(--main-color2);
}
p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--main-color4);
  margin-bottom: 15px;
  letter-spacing: 0.025em;
}
/*-----------------------------------------------------------
3. Buttons & Links 
------------------------------------------------------------*/

.contact-btn button {
  width: 200px;
  height: 60px;
  border: 0px;
  box-shadow: 0px 4px 6px 0px rgba(30,32,33,0.07);
  background-color: var(--main-color);
  border-radius: 3px;
  font-size: 1.2rem;
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
  color: var(--main-color1);
  outline: solid 1px var(--main-color4);
}
.contact-btn i {
  font-size: 2rem;
  width: 100px;
  height: 100px;
  color: var(--main-color1);
}
.hero-btns a:first-child {
  background-color: var(--main-color1);
  border:2px solid var(--main-color1);
  color: var(--main-color3);
  padding: 17px 35px;
  font-size: 1.0rem;
  border-radius: 30px;
  box-shadow: var(--shadow) rgba(255,57,70,0.25);
}
.hero-btns a:first-child:hover {
  background-color: var(--main-color3);
  border:2px solid var(--main-color1);
  color: var(--main-color2);
  padding: 17px 35px;
  font-size: 1.0rem;
  border-radius: 30px;
  transition: all 0.5s ease;
}
.hero-btns a:last-child {
  color: var(--main-color2);
  padding: 17px 35px;
  font-size: 1.0rem;
}
.hero-btns a:last-child:hover {
  color: var(--main-color1);
  transition: all 0.5s ease;
}
.navbar-light .navbar-toggler {
  color: var(--main-color2);
  border: 2px solid;
}
.navbar-toggler {
  padding: .5rem .5rem .5rem .5rem;
  font-size: 1.25rem;
  line-height: 1;
  background-color:var(--main-color1);
  border: 1px solid transparent;
  border-radius: 0.5rem;
}
.interactive-menu-button {
  position: relative;
}
#menu_checkbox
{
    display: none;
}
label
{
    position: relative;
    top: 70%;
    right: 0;
    left: 0;
    display: block;
    width: 40px;
    height: 40px;
    margin: auto 0;
    cursor: pointer;
}

label:before
{
    content: "";
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transition: 1.2s cubic-bezier(0, 0.96, 1, 0.02) ;
}

label div
{
    position: relative;
    top: 0;
    height: 5px;
    background-color: var(--main-color6);
    margin-bottom: 10px;
    transition: 0.3s ease transform, 0.3s ease top, 0.3s ease width, 0.3s ease right;
    border-radius: 2px;
}

label div:first-child
{
    transform-origin: 0;
    background-color: var(--main-color2);
}

label div:last-child
{
    margin-bottom: 0;
    transform-origin: 30px;
    background-color: var(--main-color4);
}

label div:nth-child(2)
{
    right: 0;
}
#menu_checkbox:checked + label div:first-child
{
    top: -6px;
    transform: rotateZ(45deg);
}
#menu_checkbox:checked + label div:last-child
{
    top: +6px;
    transform: rotateZ(45deg);
}
#menu_checkbox:checked + label div:nth-child(2)
{
    width: 79px;
    top: 2px;
    right:20px;
    transform: rotateZ(-45deg);
}
.navbar-nav .dropdown-menu {
  text-align: center;
  border: 0;
  background-color: var(--main-color2);
}
.navbar-nav .dropdown-menu a {
  color: var(--main-color3);
  cursor: pointer;
  font-size: 1.3rem;
  margin: 10px 0px;
}
.dropdown-item:focus, .dropdown-item:hover {
  color: var(--main-color1)!important;
  text-decoration: none;
  background-color: var(--main-color2);
}
.service-btn a {
  color: var(--main-color3)!important;
  font-size: 0.8rem!important;
}
.service-btn a:hover {
  color: var(--main-color1)!important;
}
.more-btn {
  text-align: center;
  margin: 15px 0px 100px 0px;
}
.more-btn a {
  font-size: 1.2rem;
  color: var(--main-color1)!important;
  cursor: pointer;
  padding: 20px 30px;
}
.more-btn a:hover {
  color: var(--main-color2)!important;
}
.contact-btn {
  text-align: center;
  margin-top: 70px;
}
.contact-btn a {
  color: var(--main-color3)!important;
}
.contact-btn a:hover {
  color: var(--main-color2)!important;
}
/*-----------------------------------------------------------
  4. Header
-------------------------------------------------------------*/
.navbar-light .navbar-nav .nav-link {
  color: var(--main-color2);
  font-size: 1.1rem;
}
.hero-btns {
  margin-bottom: 350px;
}
.navbar-light .navbar-nav .active>.nav-link, .navbar-light .navbar-nav .nav-link.active, .navbar-light .navbar-nav .nav-link.show, .navbar-light .navbar-nav .show>.nav-link {
  color: var(--main-color1);
}
.navbar {
  padding: 50px 0 0 0;
}
.navbar-light .navbar-brand {
  margin-right: 10%;
}
.nav-item {
  padding: 0 10px;
}
.navbar-light .navbar-nav .nav-link:focus, .navbar-light .navbar-nav .nav-link:hover {
  color: var(--main-color1);
}
.hero svg {
  position: absolute;
  top: 0;
  right: 0;
  z-index: -9;
  margin-top: 30px;
  width: 50%;
}
.hero h1 {
  margin-top: 190px;
}
.hero p {
  margin-bottom: 50px;
}

/* Table Animi */

#sq1{
animation: sqline1 5s ease-in-out infinite alternate;
transform-origin: center;
transform-box: fill-box;
}

@keyframes sqline1 {
  from{
    transform: translateX(-90%) ;
    fill: var(--main-color7); 
  }
  to{
    transform: rotateZ(90deg);
    fill: #ff3946ab;
  }
  
}
#sq3{
  animation: sqline2 8s ease infinite alternate;
  transform-origin: center;
  transform-box: fill-box;
  }
@keyframes sqline2 {
  from{
    transform: translateX(-90%) ;
  }
  to{
    transform: translatex(100%);
  }
}

/* todo for hover
svg #ball1:hover{
  animation: sqline1 5s ease-in-out infinite alternate;
  transform-origin: center;
  transform-box: fill-box;
  }
  
  @keyframes sqline1 {
    from{
      transform: translateX(-90%) ;
      fill: var(--main-color7); 
    }
    to{
      transform: rotateZ(360deg);
      fill: #ff3946ab;
    }
    
  } */
/*-----------------------------------------------------------
  5. Services
-------------------------------------------------------------*/
.services {
  padding: 50px 0px;
}
.services p {
  font-size: 1.0rem;
  color: var(--main-color2);
  line-height: 1.5rem;
}
.side-img img {
  position: absolute;
  left: -20px;
}
.side2-img img {
  position: absolute;
  right: -20px;
  top: 1300px;
}
.service-box {
  background-color: var(--main-color3);
  padding: 40px 45px;
  margin: 10px;
  box-shadow: var(--shadow) var(--main-color5);
  min-height: 400px;
}
.service-box img {
  margin-bottom: 30px;
}
/*-----------------------------------------------------------
  6. About
-------------------------------------------------------------*/
.about {
  margin-bottom: 150px;
}
/*-----------------------------------------------------------
 7. Portfolio
-------------------------------------------------------------*/
.portfolio-aside img {
  margin-top: 20px;
  position: absolute;
  left: -20px;
}
.work-box {
  margin-bottom: 30px;
  
}
.work-box img {
  width: 370px;
  height: auto;
}
/* Animation to Portfolio Gallery Hover */
.photobox{
  display: inline-block;
}
.photobox__previewbox{
  position: relative;
  overflow: hidden;
}
.photobox__preview{
  display: block;
  max-width: 100%;
}
.photobox__previewbox:before{
  content: "";
}
.photobox_type10 .photobox__previewbox:before{
  width: 0;
  height: 0;
  padding: 25%;
  background-color: var(--main-color2);
  opacity: 0.8;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transition: transform calc(var(--photoboxAnimationDuration, .8s) / 3) ease;
  will-change: transform;
  transform: translate(-50%, -50%) scale(0);
}
.photobox_type10:hover .photobox__previewbox:before{
  transform: translate(-50%, -50%) scale(4);
  transition-duration: var(--photoboxAnimationDuration, .8s);
}
.photobox_type10 .photobox__label{
  width: 95%;
  text-align: center;
  opacity: 0;  
  transition: opacity calc(var(--photoboxAnimationDuration, .8s) / 4) cubic-bezier(0.71, 0.05, 0.29, 0.9), transform calc(var(--photoboxAnimationDuration, .8s) / 4) cubic-bezier(0.71, 0.05, 0.29, 0.9);
  will-change: opacity, transform;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, 200%);
  z-index: 3;
  color: var(--main-color3);
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
  font-size: 1.1rem; 
}
.photobox_type10:hover .photobox__label{
  opacity: 1;
  transform: translate(-50%, -50%);
  transition-duration: calc(var(--photoboxAnimationDuration, .8s) / 2);
  transition-delay: calc(var(--photoboxAnimationDuration, .8s) / 4);
}
.hide {
  display: none;
  transition: all 0.3s ease;
}
/*-----------------------------------------------------------
  8. Blog
-------------------------------------------------------------*/
.blog-aside img {
  position: absolute;
  right: -20px;
  margin-top: 200px;
}
.blog {
  padding: 25px 0px;
  margin-bottom: 100px;
}
.blog-box {
  background-color: var(--main-color3);
  min-height: 330px;
  max-width: 370px;
  padding: 50px 25px;
  box-shadow: var(--shadow) var(--main-color5);
  margin: 10px;
}
.blog-box p:nth-child(2) {
  font-size: 0.9rem;
  color: var(--main-color4);
}
.blog-box p:nth-child(3) {
  font-size: 1.2rem;
  color: var(--main-color2);
}
.blog-first {
  background-color: var(--main-color1);
}
.blog-first h6 {
  color: var(--main-color3);
}
.blog-first p:nth-child(2) {
  color: var(--main-color3);
}
.blog-first p:nth-child(3) {
  color: var(--main-color3);
}

/*-----------------------------------------------------------
  9. Contact
-------------------------------------------------------------*/
.contact {
  max-height: 550px;
}
input:hover,textarea:hover {
  outline: 3px solid var(--main-color4);
}

.email input {
  width: 100%;
  height: 60px;
  background-color: var(--main-color6);
  border: none;
  padding: 0px 20px;
  color: var(--main-color2);
  font-weight: 600;
  margin-bottom: 15px;
}
::placeholder { 
  color: var(--main-color2);
  font-weight: 600;
}

textarea {
  background-color: var(--main-color6);
  border: none;
  width: 100%;
  padding: 20px;
  margin-top: 15px;
  color: var(--main-color2);
  font-weight: 600;
}
/*-----------------------------------------------------------
  10. Footer
-------------------------------------------------------------*/
footer {
  background-color: var(--main-color2);
  width: 100%;
  min-height: 400px;
  text-align: center;
  padding: 70px 0px 0px 0px;
}
footer h5{
  color: var(--main-color3);
  padding-bottom: 10px;
}
footer h3{
  color: var(--main-color1);
  font-size: 3rem;
  margin-bottom: 30px;
}
.contact-nav li {
  display: inline;
  color: var(--main-color3);
}
.contact-nav a {
  color: var(--main-color3);
  font-size: 1.1rem;
  padding: 20px 20px;
}
.contact-nav a:hover {
  color: var(--main-color1);
}
footer h6 {
  color: var(--main-color3);
  font-size: 0.9rem;
  font-weight: 400;
  margin-top: 50px;
  margin-bottom: 20px;
}
.social li {
  display: inline;
}
.social li a {
  font-size: 2.7rem;
  color: var(--main-color3);
  margin: 0px 30px;
}
.social li a:hover {
  color: var(--main-color1);
  transition: all 0.9s ease;
}

/*-----------------------------------------------------------
  11. Responsive
-------------------------------------------------------------*/
@media (max-width: 2400px) {
  
  .hero svg {
    margin-top: 160px;
  }
}
@media (max-width: 1700px) {
  .hero-btns {
    margin-bottom: 200px;
  }
  .hero svg {
    margin-top: 130px;
  }
}
@media (max-width: 1500px) {
  .hero svg {
    margin-top: 130px;
  }
}
@media (max-width: 1350px) {
  .hero-btns {
    margin-bottom: 140px;
  }
}
@media (max-width: 1199px) {
  .nav-item {
    padding: 0px; 
  }
  .navbar-light .navbar-nav .nav-link {
    font-size: 1rem;
  }
  .contact-btn button {
    box-shadow:none;
    background-color: none;
    font-size: 1rem;
}
  .hero svg {
    margin-top: 150px;
    width: 45%;
  }
  .hero h1 {
    margin-top: 150px;
  }
  h2 {
    font-size: 2rem;
    line-height: 3.0rem;
  }
  h3 {
    font-size: 1.4rem;
    line-height: 2rem;
    margin-bottom: 20px;
  }
  .services p {
    font-size: 0.8rem;
  }
  .hero-btns {
    margin-bottom: 120px;
  }
}
@media (max-width: 991px) {
  .navbar-brand{
    width: 130px;
    
  }
  .navbar {
    padding: 15px 0 0 0;
  }
  .hero svg {
    display: none;
  }
  .hero {
    text-align: center;
  }
  .hero h1 {
    margin-top: 80px;
  }
  .navbar-collapse {
    text-align: center;
    margin-top: 50px;
  }
  .navbar-light .navbar-nav .nav-link {
    font-size: 2rem;
  }
  .hero-btns {
    margin-bottom: 70px;
  }
  .service-txt {
    text-align: center;
  }
  .about img {
    margin-bottom: 70px;
  }
  .about {
    text-align: center;
  }
  .portfolio {
    text-align: center;
  }
  .blog {
    text-align: center;
  }
  .blog-box {
    margin: 0 auto;
    margin-bottom: 25px;
  }
  .contact {
    text-align: center;
  }

}
@media (max-width: 768px) {
  .hero h1 {
    font-size: 3.5rem;
  }
  .service-box {
    padding: 20px 25px;
    margin: 0px;
  }
  .contact-nav a {
    font-size: 1rem;
    padding: 20px 5px;
  }
}

@media (max-width: 575px) {
  .service-box {
    padding: 20px 25px;
    max-width: 300px;
    margin: 0 auto;
    margin-bottom: 40px;
  }
  footer h3{
    font-size: 2.5rem;
  }
}
@media (max-width: 454px) {
  .hero h1 {
    font-size: 3.0rem;
    margin-top: 50px;
  }
  .hero p {
    font-size: 0.8rem;
  }
  .hero-btns a:first-child {
    font-size: 0.8rem;
    display: block;
    width: 70%;
    margin: 0 auto;
  }
.hero-btns a:last-child {
    font-size: 1.0rem;
    display: block;
    width: 70%;
    margin: 0 auto;
  }
  footer h3{
    line-height: 2.6rem;
  }
  .contact-nav li {
    display: block;
  }
  .social li {
    display: block;
  }
}

