/* Header Image From */
/* <a href='https://www.freepik.com/photos/technology'>Technology photo created by vanitjan - www.freepik.com</a> */

@import url("https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css");
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@500&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: all ease-in-out 300ms;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "montserrat", sans-serif;
  text-align: center;
  transition: transform 1s ease;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

body.show-nav {
  /* ==width of the nav (200px)== */
  transform: translateX(200px);
}

/*===== Home-Hero===== */

.home-hero {
  
  background-image: url(../img/headerimage-min.jpg);
  background-size: cover;
  background-position: center;
  padding: 10em 0;
  color: #fff;
}

/*===== typography===== */
h1 {
  font-weight: 300;
  font-size: 2rem;
}

.portfolio h1 {
  color: #333;
}

p {
  margin-top: 0;
  line-height: 1.5;
}

.title {
  font-size: 2em;
  font-weight: 500;
  margin-top: 10rem;
  margin-bottom: 2.5rem;
}

.title span {
  color: #3ce434;
  font-weight: 800;
  display: block;
  font-size: 0.85em;
}
.container {
  width: 95%;
  max-width: 75em;
  margin: 0 auto;
}

.clear-fix:after,
section::after {
  content: "";
  display: block;
  clear: both;
}

/* Columns */

[class^="col-"] {
  width: 100%;
  margin-top: 1em;
}

[class^="col-"]:first-child {
  padding-top: 0;
}

/* Images Size */
img {
  max-width: 100%;
  height: auto;
}

/* Buttons */
.button {
  display: inline-block;
  font-size: 0.3rem;
  text-transform: uppercase;
  text-decoration: none;
  border-width: 2px;
  border-style: solid;
  border-radius: 10px;
  padding: 0.5em 1.75em;
  margin-top: 5rem;
}

.button-small {
  font-size: 0.2em;
}

.button-accent {
  color: #3ce434;
  border-color: #3ce434;
}

.button-accent:hover,
.button-accent:focus {
  color: #ff0026;
  background: #3ce434;
}
.button-dark {
  color: #000000;
  border-color: #000000;
}

.button-dark:hover,
.button-dark:focus {
  color: #ff0026;
  background: #3ce434;
}

.home-about-textbox {
  background-color: #2a3a63;
  padding: 4em;
  width: 100vw;
  margin-left: -2.5%;
  outline: 2px solid #ff0026;
  outline-offset: -2.5em;
  color: #fff;
  position: relative;
}

.home-about-textbox h1 {
  color: #3ce434;
  text-transform: uppercase;
  position: absolute;
  top: -0.5em;
  left: 50%;
  transform: translateX(-50%);
  background: #2a3a63;
  padding: 0.145em;
}

/*===== Portfolio===== */
.portfolio {
  margin: 3em 0 0;
  background: #f1f1f1;
}

figure {
  margin: 0;
}

.port-item {
  position: relative;
  margin: 0;
}

.port-item img {
  display: block;
}

.port-desc {
  position: absolute;
  z-index: 100%;
  top: 0em;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3em;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
}

.port-desc p {
  top: 10em;
  bottom: 10em;
}

/*===== Carousel Section start=====*/
/* * {box-sizing: border-box;}
.mySlides {display: none;}
img {vertical-align: middle;} */

/* Slideshow container */
.slideshow-container {
  max-width: 1000px;
  /* max-width: 100%; */
  position: relative;
  margin: auto;
  margin-top: 60px;
  /* background: #f1f1f1; */
}

.slideshow-container h2 {
  color: #3ce434;
}

.slideshow-container p {
  text-align: center;
  line-height: 30px;
  font-size: 20px;
}

/* Caption text */
.text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* The dots/bullets/indicators */
.dot {
  height: 15px;
  width: 15px;
  margin: 0 2px;
  /* background-color: #bbb; */
  background-color: #2a3a63;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active-dot {
  /* background-color: #717171; */
  background-color: #ff0026;
}

/* Fading animation */
.fade {
  -webkit-animation-name: fade;
  -webkit-animation-duration: 1.5s;
  animation-name: fade;
  animation-duration: 1.5s;
}

@-webkit-keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

@keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

/* On smaller screens, decrease text size */
@media only screen and (max-width: 300px) {
  .text {
    font-size: 11px;
  }
}

/*===== Gallery styles start ======*/
.gallery-section {
  width: 100%;
  padding: 60px 0;
  background: #f1f1f1;
  margin-top: 60px;
}

.inner-width {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

.gallery-section h1 {
  text-align: center;
  color: #333;
}

.border {
  width: 180px;
  height: 4px;
  background: #3ce434;
  margin: 60px auto;
}

.gallery-section .gallery {
  display: flex;
  flex-wrap: wrap-reverse;
  justify-content: center;
}

.gallery-section .image {
  flex: 25%;
  overflow: hidden;
  cursor: pointer;
}

.gallery-section .image img {
  width: 100%;
  height: 100%;
}

.gallery-section .image:hover img {
  transition: 1s;
  transform: scale(1.2) rotate(15deg);
}
/* Gallery end */

/* =====Call to Action CTA===== */
.cta {
  /* background: #228b22; */
  background: linear-gradient(#2a3a63, #228b22);
  padding: 3em 0;
}

/* Cta title */
.ctatitle {
  color: #000;
  font-size: 2em;
  margin-top: 1rem;
  margin-bottom: 30px;
}

.ctatitle span {
  color: #fff;
  font-weight: 200;
  display: block;
  font-size: 24px;
}

.unstyled-list {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

/* Scroll Up Button */
#scroll {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 99;
  border: none;
  outline: none;
  background-color: #228b22;
  color: #fff;
  cursor: pointer;
  padding: 15px;
  border-radius: 10px;
  font-size: 18px;
}

#scroll:hover {
  background: #ff0026;
}

/* =====Footer Mon 28th===== */
.footer {
  text-align: left;
}

.footer .footer-content .links ul {
  padding: 0;
}

/*===== Media Queries ===== */

/* Gallery Media Queries start*/
@media (max-width: 768px) {
  .gallery-section .image {
    flex: 50%;
  }
}

@media (max-width: 480px) {
  .gallery-section .image {
    flex: 100%;
  }
}
/* Gallery Media Queries end*/

@media (max-width: 615px) {
  .main-section {
    width: 100%;
  }
}

/*40rem /640px*/
@media (min-width: 640px) {
  [class^="col-"] {
    float: left;
    padding: 0 0.5em;
    margin-top: 0;
  }

  [class^="col-"]:first-child {
    padding-left: 0;
  }
  [class^="col-"]:last-child {
    padding-right: 0;
  }

  .col-3 {
    width: 50%;
  }

  .col-1 {
    width: 16.6666%;
  }
}

/* 300px/ 18rem */
@media (min-width: 300px) {
  .home-about-textbox h1 {
    top: -0.015em;
    padding: 0.325em;
    font-size: 1.2rem;
  }
}

/* 400px/ 25rem */
@media (min-width: 400px) {
  h1 {
    font-size: 2rem;
  }
  .title {
    font-size: 3em;
  }

  .logo {
    float: left;
  }

  nav {
    float: right;
  }

  .home-hero {
    height: 100vh;
    padding-top: 20vh;
  }

  .button {
    font-size: 1.5rem;
  }
  .home-about-textbox h1 {
    top: -0.1em;
    padding: 0.325em;
    font-size: 1.5rem;
  }
}

/* 960px/ 60rem */
@media (min-width: 960px) {
  p {
    font-size: 1em;
  }

  .home-about {
    background-image: url(../img/sea.jpeg);
    background-size: cover;
    background-repeat: no-repeat;
    padding-bottom: 10em;
  }

  .home-about-textbox {
    width: 40%;
    padding: 6em;
    top: -5em;
    margin-left: -7.5%;
    box-shadow: 0 0 3em 0 rgba(0, 0, 0, 0.3);
  }

  .port-item {
    width: 33.333334%;
    overflow: hidden;
    transition: 1s;
  }

  .port-desc {
    transform: translateY(150%);
    transition: 1s;
  }

  .port-item:hover .port-desc {
    transform: translateY(0%);
  }
}

/* 590px / 36rem */
@media (min-width: 590px) {
  .port-item {
    width: 50%;
    float: left;
  }
}

/* =====Footer===== */
.footer {
  background: #2a3a63;
  color: #fff;
  height: 450px;
  position: relative;
  width: 100%;
}

.footer .footer-content {
  margin: 50px;
  height: 350px;
  display: flex;
}

.footer .footer-content h2 {
  color: #3ce434;
}

.footer .footer-content .footer-section {
  flex: 1;
  padding-top: 25px;
  /* border: 1px solid white; */
  align-items: center;
}

/* Footer About Us styles */
.footer .footer-content .about {
  margin-left: 10px;
}
.footer .footer-content .about p {
  font-size: 18px;
  margin-left: 5px;
}

.footer .footer-content .about img {
  width: 200px;
  height: 50px;
}

/* Footer Contact Styles */
.footer .footer-content .contact span {
  display: block;
  font-size: 20px;
  margin-bottom: 8px;
}

.footer .footer-content .contact .socials a {
  border: 1px solid grey;
  width: 45px;
  height: 41px;
  color: #fff;
  padding-top: 5px;
  margin-right: 5px;
  text-align: center;
  display: inline-block;
  font-size: 18px;
  border-radius: 5px;
  text-decoration: none;
  transition: 0.5s;
}

.footer .footer-content .contact .socials a:hover {
  color: #ff0026;
}

.footer .footer-content .footer-section {
  padding: 0;
}

/* Footer Links Styles */
.footer .footer-content .links ul {
  list-style: none;
}

.footer .footer-content .links ul a {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
  transition: 0.5s;
  color: #fff;
  text-decoration: none;
}

.footer .footer-content .links ul a:hover {
  color: #ff0026;
  margin-left: 20px;
}

.footer .footer-bottom {
  height: 50px;
  width: 100%;
  text-align: center;
  position: absolute;
  bottom: 0px;
  left: 0px;
  padding-top: 10px;
}

/* Media Queries */
@media (max-width: 845px) {
  .footer {
    width: 100%;
    height: 750px;
    text-align: left;
    display: flex;
    margin-top: auto;
  }
  .footer .footer-content {
    margin-left: 20px;
    flex-direction: column;
    margin-top: 0;
  }
  .footer .footer-content {
    margin-bottom: 100px;
  }
  .footer .footer-content .about p {
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
  }

  .footer .footer-content .links {
    margin-left: 0;
  }

  .footer .footer-content .links ul a {
    font-size: 14px;
    margin-left: 5px;
    margin-top: 10px;
  }

  .footer .footer-content .contact,
  .footer .footer-content .contact span {
    font-size: 14px;
    margin-bottom: 10px;
    margin-top: 10px;
  }

  footer .footer-content .contact .footer .footer-content .contact .socials a {
    border: 1px solid grey;
    width: 35px;
    height: 31px;
    font-size: 14px;
    margin-top: 5px;
  }

  .footer .footer-content .contact .socials {
    margin-bottom: 10px;
  }

  .footer .footer-content h2 {
    padding: 0;
    font-size: 16px;
    margin: 10px;
    /* margin-bottom: 0; */
  }
  p:last-of-type {
    margin-bottom: 5px;
  }

  .footer .footer-content .links ul {
    color: #ff0026;
    padding: 0;
  }

  .footer-bottom {
    margin: 20;
    font-size: 12px;
  }
}

/* ===== Scroll Up Button */
#scroll {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 99;
  border: none;
  outline: none;
  background-color: #3ce434;
  color: #fff;
  cursor: pointer;
  padding: 15px;
  border-radius: 10px;
  font-size: 18px;
}

#scroll:hover {
  background-color: #ff0026;
  /* color: #fff; */
}
