/* Import Google Fonts */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=PT+Serif:ital,wght@0,400;0,700;1,400;1,700&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=PT+Serif:ital,wght@0,400;0,700;1,400;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=PT+Serif:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* Box sizing rules */
/* General Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Prevent font size inflation */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  min-height: 100%;
  height: 100%;
}

/* Set shorter line heights on headings and interactive elements */
h1,
h2,
h3,
h4,
button,
input,
label {
  line-height: 1.1;
}

/* Balance text wrapping on headings */
h1,
h2,
h3,
h4 {
  text-wrap: balance;
  font-family: "PT Serif", serif;
  font-weight: 700;
  font-style: italic;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/*creating variable*/
:root {
  --primary-color: rgb(47, 69, 88);
  --lite-primary: rgb(106, 116, 137);
  --secondary-color: rgb(85, 85, 85);

  --lite-secondary: rgb(177, 179, 163);
  --main-color: rgb(249, 249, 249);
  --lite-main:#94B2BF;
  --font-color: rgb(245, 245, 245);
  --button-primary-bg: rgb(221, 171, 94) ;
  --button-secondary-bg: rgb(216, 9, 9);
  --button-secondary-lite: rgb(13, 73, 107);
  --button-color: rgb(20, 20, 1);
  --color-h2: rgb(6, 22, 50);
  --primary-border: rgb(255, 255, 255);
  --senodary-border: rgb(164, 159, 159);
  --sliderlist-hover: rgb(212, 223, 230);
}

/* Body Styling */
body {
  background-color: var(--main-color);
  min-height: 100%;
  height: 100%;
  color: var(--color-h2);
  line-height: 1.5;
  font-family: "PT Serif", serif;
  font-weight: 400;
  font-style: normal;

}

.sticky {
  position: fixed;
  top: 0;
  width: 100%;
}

a.arrow-right img{
  width:2em;
  position: relative;
  left: 20em;
 justify-content: end;
 align-self: end;

}

/* Header Styling */
header {
  background-color: var(--primary-color);
  display: flex;
  align-items: center;
  border-bottom: .2em solid var(--color-h2);
  justify-content: space-between;
  background: primary-color;
  padding: 1rem 2rem;
  color: white;
  z-index: 10;
}

.logo-hamburger-button {
  display: grid;
  gap: .2em
}

.logo-hamburger-button img {
  border-radius: .5em;
  height: 50px;
}

.sidebar {
  interpolate-size: allow-keywords;
  list-style-type: none;
  top: 7em; 
  padding-top: .5em;
  padding-right: .5em;
  height: 100vh;
  width: auto;
  background-color: rgba(143, 184, 223, 0.2);
  box-shadow: -10px 0 10px rgb(0, 0, 0, 0.1);
  backdrop-filter: blur(.5em);
  position: fixed;
  overflow: hidden;
  border-radius: .5em;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  z-index: 100;
}

/*sidebar style*/
ul.sidenav {
  list-style-type: none;
  padding: 3em;
  border-radius: .5em;
  width:15em;
}

.close-btn {
  width: 70px;
  position: absolute;
  right: 10px;
  top: 15px;
}

.hidden {
  display: none;
}

ul.sidenav li:not(:last-child) {
  margin-bottom: .5em;
}

ul.sidenav li a {
  display: block;
  background: var(--button-primary-bg);
  border: 1px solid var(--button-color);
  color: var(--color-h2);
  padding: 5px 0px;
  text-align: center;
  text-decoration: none;
  border-radius: .5em;
}
/* visited link */
a:visited {
  color: rgb(187, 9, 98);
}
.active-page a {

  color: var(--color-h2) !important;
  font-weight: 700; 
 
  background-color: var(--sliderlist-hover) !important;
  
 }
/*hover style*/
li a:hover{
  background-color: var(--sliderlist-hover) !important;
  color: var(--color-h2) !important;
  font-weight: 600; 
}

/*skip link focus*/
.skip-link {
  position: absolute;
  left: -999px;
}           
.skip-link:focus {
  left: 10px;
  top: 10px;
  background: #fff;
  padding: 8px;
  z-index: 1000;
}

/* Main Content wrapper class */
.wrapper {
  max-width: 75vw;
  width: 75vw;
  font-family: sans-serif;
  font-size: 1.2rem;
  margin: 0 auto;
  padding: 20px 20px;
  /* make centre */
}

/*banner styling*/
.banner {
  background: linear-gradient(336deg,rgba(14, 50, 64, 1) 0%, rgba(51, 97, 123, 1) 13%, rgba(153, 130, 47, 1) 57%, rgba(55, 89, 110, 1) 85%);
  width: 100%;
  height: 10em;
  margin-bottom: 1em;
  overflow: hidden;
  position: relative;
  border-radius: 1em;
  z-index: 5;
}

.banner h2 {
  color: var(--sliderlist-hover);
  animation: fadein-out 15s;
  transform: translate(-50%, -50%);
  text-transform: uppercase;
  position: absolute;
  top: 50%;
  left: 50%;
  
}
@keyframes fadein-out {
  0% {opacity:0;
    font-size: 8px;
  }
  50%{ opacity: .5;
  color: red;}
  100% {opacity: 1;
  }
}

@keyframes animate {
  from {
    transform: scale(0) translateY(0) rotate(0);
    opacity: 1;
  }

  to {
    transform: scale(1.3) translateY(-90px) rotate(360deg);
    opacity: 0;
  }
}

.box,
.circle,
.banner {
  position: relative;
}

.box div {
  position: absolute;
  width: 3em;
  height: 3em;
  background-color: transparent;
  border: .3em solid var(--primary-border);
}

.circle div {
  position: absolute;
  width: 3em;
  height: 3em;
  border-radius: 50%;
  background-color: transparent;
  border: .3em solid var(--primary-border);
}

/* banner animation styling*/
.circle div:nth-child(1) {
  bottom: 12%;
  left: 42%;
  animation: animate 10s linear infinite;
}

.circle div:nth-child(2) {
  top: 12%;
  left: 72%;
  animation: animate 7s linear infinite;
}

.circle div:nth-child(3) {
  top: 100%;
  left: 100%;
  animation: animate 5s linear infinite;
}

.circle div:nth-child(4) {
  top: 52%;
  left: 62%;
  animation: animate 8s linear infinite;
}

.circle div:nth-child(5) {
  top: 17%;
  left: 6%;
  animation: animate 9s linear infinite;
}

.circle div:nth-child(6) {
  top: 20%;
  left: 60%;
  animation: animate 10s linear infinite;
}

.circle div:nth-child(7) {
  top: 67%;
  left: 10%;
  animation: animate 15s linear infinite;
}

.circle div:nth-child(8) {
  top: 70%;
  left: 20%;
  animation: animate 7s linear infinite;
}

.circle div:nth-child(9) {
  top: 32%;
  left: 22%;
  animation: animate 10s linear infinite;
}

.circle div:nth-child(10) {
  top: 70%;
  left: 90%;
  animation: animate 10s linear infinite;
}

.box div:nth-child(1) {
  top: 12%;
  left: 42%;
  animation: animate 10s linear infinite;
}

.box div:nth-child(2) {
  top: 12%;
  left: 72%;
  animation: animate 7s linear infinite;
}

.box div:nth-child(3) {
  top: 100%;
  left: 100%;
  animation: animate 5s linear infinite;
}

.box div:nth-child(4) {
  top: 52%;
  left: 62%;
  animation: animate 8s linear infinite;
}

.box div:nth-child(5) {
  top: 17%;
  left: 6%;
  animation: animate 9s linear infinite;
}

.box div:nth-child(6) {
  top: 20%;
  left: 60%;
  animation: animate 10s linear infinite;
}

.box div:nth-child(7) {
  top: 67%;
  left: 10%;
  animation: animate 15s linear infinite;
}

.box div:nth-child(8) {
  top: 70%;
  left: 20%;
  animation: animate 7s linear infinite;
}

.box div:nth-child(9) {
  top: 32%;
  left: 22%;
  animation: animate 10s linear infinite;
}

.box div:nth-child(10) {
  top: 70%;
  left: 90%;
  animation: animate 10s linear infinite;
}

.section-heading {
  align-self: center;
  justify-self: center;
  margin-top: 1em;
  margin-bottom: 1em;
}

.slide h1 {
  color: rgb(165, 42, 42);
  background-color: rgb(250, 235, 215);
  justify-self: center;
}

.slider {
  margin: 0 auto;
  padding: 2em 0;
  animation: sliderIn 10s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 50em;
  height: auto;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  border-radius: 1em;
  scrollbar-width: none;
  background-color: var(--primary-color);
}

@keyframes sliderIn {
  from {
    opacity: 0;
    background: rgb(229, 220, 179);
  }

  to {
    opacity: 1;
  }
}

.slide {
  width: 40em;
  height: 20em;
  border-radius: 1em;
  display: flex;
  padding: 2em;
  flex-direction: column;
  background-color: var(--lite-main);
  align-items: end;
  justify-content: end;
  flex-shrink: 0;
  margin-left: 2em;
}

.slider::-webkit-scrollbar {
  display: none;
}

.slide-one,
.slide-two {
  display: flex;
  background-size: cover;
  background-position: center;
}

.slide-one {
  background-image: url(images/blue-graysample.jpg);
}

.slide-two {
  background-image: url(images/average.jpg);
}
.slide-three{
  background-image: url(images/Dutonemontage.jpg);
}
.slide-three {
  background-color: rgba(53, 87, 105, 0.95);
}

.sliderul {
  display: flex;
  width: 50em;
  margin: 1em auto;
  list-style: none;
  justify-content: center;
  gap: 1em;
}

.slider a {
  text-decoration: none;
}

ul.sliderlist a:hover {
  background-color: rgb(175, 118, 4) !important;
  
}

.sliderul li a {
  width: 1em;
  height: 1em;
  background-color:var(--button-secondary-bg);
  border-radius: 999em;
  display: block;
  cursor: pointer;
}

.slider-button {
  background-color: var(--button-secondary-bg);
  width: 8em;
  height: 3em;
  padding: .5em 1em;
  border-radius: 1em;
  margin-top: 2em;
  cursor: pointer;
  color: var(--font-color);
  font-weight: bold;
  border: none;
}

.slider-button:hover {
  background-color: var(--button-primary-bg) ;
  color: var(--color-h2) ;
}

.desktop-menu ul {
  list-style: none;
  display: flex;
}

.desktop-menu a {
  color: var(--color-h2);
  background-color: var(--button-primary-bg);
  padding: .5em 1em;
  margin: .2em;
  text-decoration: none;
  border-radius: .5em;
}

nav a:hover {
  background: var(--secondary-color);
  color: var(--lite-secondary);
}

/* Contact us */
.contact-us {
  display: grid;
  
  grid-template-columns: 1fr 1fr;
 
  
}

#contactForm {
  margin-top: 2.4em;
}

label {
  padding: 0.75rem 0;
  display: block;
}
fieldset {
  padding:15px 15px;
}
.input-group {
  display: flex;
  flex-direction: column;
  align-self: center;
}

input[type=text],
select {
  width: 400px;
  padding: 12px 20px;
  margin: 8px 0;
  display: block;
  border: 1px solid var(--senodary-border);
  border-radius: 4px;
  box-sizing: border-box;
}

textarea {
  width: 400px;
  padding: 12px 20px;
  margin: 8px 0;
  display: block;
  border: 1px solid rgb(204, 204, 204);
  border-radius: 4px;
  box-sizing: border-box;
}

input[type=submit] {
 width:200px;
  background-color: var(--button-primary-bg);
  color: var(--color-h2);
  padding: 14px 20px;
  margin: 8px 0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

input[type=reset] {
  width:200px;
  background-color: var(--button-secondary-bg);
  color: var(--font-color);
  padding: 14px 20px;
  margin: 8px 0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

input[type=reset]:hover {
  background-color: var(--button-secondary-lite);
}

section h2:not(#values > h2, .contactUs-heading) {
  align-self: center;
  justify-self: center;
}

input[type=submit]:hover {
  background-color: var(--secondary-color);
  color: var(--font-color)
}

button {
  color: #0f0f0e;
  background-color: var(--button-primary-bg);
  border: none;
  padding: .5em .5em;
  cursor: pointer;
  border-radius: 1em;
}

button:hover {
  background-color: var(--sliderlist-hover);
  color: var(--color-h2);
}


/* Company Offerings */
.offerings{
  display: grid;
}
.accordian {
  background: var(--sliderlist-hover);
  
  display: flex;
  flex-direction: column;
  margin: 1em;
  align-items: center;
  padding: 1em;
  border-radius: .5em;
}

details summary {
  font-weight: bold;
  cursor: default;
}

details p {
  padding: 2em .3em;
  background-color:  var(--button-primary-bg);
  border-radius: 1em;
}

/* Company Values */
#values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0;
}

#values div {
  flex: 1 1 30%;
  padding: 1rem;
  background: rgba(148, 178, 191, 0.1);
  border-left: 5px solid var(--button-primary-bg);
  border-radius: 5px;
 
}
/*contact button styling*/
.contact-us-button{
 background-color: var(--button-secondary-bg);
  width: 8em;
  height: 3em;
  padding: .5em 1em;
  border-radius: 1em;
  margin-top: 2em;
  cursor: pointer;
  color: var(--font-color);
  font-weight: bold;
  border: none;
}
.contactUs-heading{
  
 margin-bottom: 1em;
}
#error{
  background-color: yellow;
  color: red;
}
/*footer styling*/
footer {
  width:100% ;
  background: var(--primary-color);
 padding: 2em 2em;
 position: sticky;
  left: 0;
  bottom: 0;
  color: white;
}

footer nav ul {
  display: flex;
  gap:10px;
 
  justify-content: center;
  
}
footer nav ul li {
  list-style: none;
  width:120px;
}

footer a {
  color: var(--font-color);
  text-decoration: none;
  padding:15px 20px
}

footer a:hover {
  text-decoration: underline;
}

/* Small Devices, Tablets */
@media only screen and (max-width: 1024px) {
  .banner {
    width: 100%;
    left: 0;
  }

  .wrapper {
    max-width: 100%;
    width: 100%;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
  }

  #values {
    flex-direction: column;
  }

  .contact-us {
    display: block;
    margin-top: 1em;
  }

  .hidden {
    display: none;
  }

  /* Hide Desktop Menu */
  .desktop-menu {
    display: none;
  }
  input[type=text],
  select, textarea {
    width: 16em;
  }

  .sidebar {
    width: 100%;
  }

  .slider {
    width: 100%;
  }

  .sliderul {
    width: 100%;
  }

  .slide {
    width: 85%;
  }
}

/* Extra Small Devices, Phones */
@media only screen and (max-width: 767px) {

  /* Hide Desktop Menu */
  .desktop-menu {
    display: none;
  }
  
  .sidebar{
    top:7em;
  }
  /* hide footer*/
  footer{
    display: none;
  }

  /* Further Hide Desktop Menu */
  .banner {
    width: 100%;
    font-size: 12px;
  }

  .wrapper {
    max-width: 100%;
    width: 100%;
  }

  .sidebar {
    width: 100%;
  }

  ul.sidenav {
    margin-top: 100px;
    margin-left: 80px;
  }

  .close-btn {
    top: 40px;
    right: 40px;
    
  }

  input[type=text],
select, textarea {
  width: 200px;
}

  .slider {
    width: 100%;
  }

  .sliderul {
    width: 100%;
  }

  .slide {
    width: 85%;
  }
}
/*Media Query for Reduced Motion for accessibility*/
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
