* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: linear-gradient(to bottom, #6495ed, #ffffff);
  background-repeat: no-repeat;
  background-size: cover;
  font-family: 'Open Sans', sans-serif;
  letter-spacing: 1px;
  font-size: 16px;  
  opacity: 0;
  animation: fadeIn 1s forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

#wrapper {   
  height: 100vh;
  width: 1280px;
  margin: 0 auto;    
  display: grid;
  grid-template-areas:
    "banner"
    "content"
    "footer";
  grid-template-rows: 90px auto 50px; 
}

/* ------------------------------------------------ banner area --- */

header {
  max-width: 1280px;
  padding: 0 1em;  
  position: relative;
  grid-area: banner;  
  display: flex;
  align-items: flex-start;  
  background-color:#6495ed;
  justify-content: space-between;
  z-index: 200;  
}

#logo {
  margin-top: 1rem;
  margin-left: 10px;
}

nav {  
  max-width: 500px;
  width: 100%;
  margin: auto auto; 
}

nav ul {
  display: flex;
  justify-content: space-between;
  list-style: none;  
}

nav a {
  text-decoration: none;
  color: white;
  font-weight: 500;  
  font-size: 1em;
}

nav a:hover {
  color: #bee000;
  transition: 500ms;
}

nav a:active {
  color: #bee000;
  transition: 500ms;
}

.download-btn {
  margin-top: 1.1rem;
  margin-right: 10px;
  padding: 10px 20px;
  border-radius: 25px;
  border: 3px solid #999;
  font-size: 1em;
  text-decoration: none;
  letter-spacing: 1.5px;
  color: #1b3d56;
  background-color: white;
  cursor: pointer;
  transition: all 0.2s ease;
}

.download-btn:hover {  
  border: 3px solid #bee000;
}

/* -- hide hamburger menu on desktop -- */

#hamburger-toggle {
    display: none;
  }

/* Position hamburger on the right top corner */
.hamburger, .menu {
    display: none;
  }

/* ------------------------------------------------ index content area --- */

#index-main {
  grid-area: content;  
  max-width: 1280px;
  margin: 0 auto;
  background: linear-gradient(to bottom, #6495ed, #ffffff);
  display: flex;
  flex-direction: column;  
}

.intro {    /* --- intro section --- */
  width: 94%;
  margin-top: 3rem;  
  font-size: 1.2em;
  color: #1b3d56;  
  margin-left: 4rem;
  display: grid;
  grid-template-areas: "txt img";
  grid-template-columns: 1fr 1fr;
}

.intro p {
  margin-top: 3rem;
  font-size: 1.8rem;
  grid-area: txt;
  color: #1b3d56;     
}

.intro h1 {
  grid-area: txt;  
  margin-top: 10rem;  
  color: white;
  text-shadow: black 2px 2px;   
}

.intro h2 {
  grid-area: txt;
  font-size: 1rem;
  font-weight: 100;
  margin-top: 23em;
  color:#1b3d56;
}

.intro img {
  grid-area: img;  
  margin-left: 5rem;
}

#cards {    /* --- cards section --- */
  margin-top: 2rem;
  margin-bottom: 20px; 
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2em;
  padding: 2em 3em;   
}

#cards h2 {  
  text-align: center;
  display: none;
}

.card {
  width: 20%;
  min-height: 200px;  
  padding: 10px;  
  text-align: center;
  align-content: center; 
  border: 1px solid white;
  border-radius: 20px;  
}

.card h3{  
  font-size: 1em;
  margin-bottom: 10px;
}

.card img {  
  margin-left: auto;
  margin-right: auto;  
  margin-bottom: 10px;
}

/* ------------------------------------------------ features content area --- */

#features-main {
  grid-area: content; 
  max-width: 1280px;
  margin: 0 auto; 
  text-align: center;
  background: linear-gradient(to bottom, #6495ed, #ffffff);  
}

#features-main h1 {
  padding: 1rem;  
  font-size: 1.5rem;
  text-align: center; 
}

#features-main h2 {
  font-size: 1rem;  
  margin-bottom: 20px; 
}

/* ---------------- grid configuration ---------------- */

.grid-container {
  padding: 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-areas:
    "a1 image image a2"
    "a3 image image a4"
    "a5 a6 a7 a8"; 
  gap: 15px;   
}

.grid-container h2 {
  display: none;
}

/* --- assigning grid areas to placeholders --- */

.a1 {
  grid-area: a1;
}

.a2 {
  grid-area: a2;
}

.a3 {
  grid-area: a3;  
}

.a4 {
  grid-area: a4;  
}

.a5 {
  grid-area: a5;
}

.a6 {
  grid-area: a6;
}

.a7 {
  grid-area: a7;
}

.a8 {
  grid-area: a8;
}

/* --- placing image in grid --- */

.image-column {
  grid-area: image;
  display: flex;
  justify-content: center;
  align-items: center;   
}

.image-column img {
  width: 100%;
  max-width: 516px;
  height: auto;    
}

.feature {  
  background-color: rgb(255, 255, 255,0.8);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  border-radius: 20px;
  padding: 1.5rem;  
}

.feature h3 {
  text-align: left;
  font-size: 1rem;
  margin-bottom: 10px;   
}

.feature p {
  text-align: left;
  font-size: 0.9rem;
  line-height: 1.5;  
}

/* ------------------------------------------------ screenshots content area --- */

#main-shots{
  grid-area: content;
  width: 100%;
  background: linear-gradient(to bottom, #6495ed, #ffffff); 
}

#main-shots h1 {
  margin-top: 1.5rem;
  margin-bottom: 10px;
  font-size: 1.5rem;
  text-align: center;
}

#main-shots h2 {  
  margin-bottom: 30px;
  text-align: center;
  color: white;
  font-size: 1em;
  font-weight: 100;
}

.gallery {
  width: 70%;
  padding: 2rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto; 
  align-items: center;
  justify-items: center;
  grid-gap: 30px;
  justify-content: center;
  
}

.gallery img {
  width: 300px;
  height: 200px;
  padding: 10px;
  object-fit: cover;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);  
}

.gallery img:hover {
  z-index: 9;
  transform: scale(1.1);
  transition: transform ease 0.5s;
  cursor: pointer;
}

/* ------------------------------------------------ faq content area --- */

#faq-main {
  grid-area: content;
  width: 100%;
  background: linear-gradient(to bottom, #6495ed, #ffffff);
}

#faq-main h1 {
  margin-top: 1.5rem;
  font-size: 1.5rem;  
  text-align: center;  
}

/* --- accordion section --- */

#accordion {
  flex: 1;    
  width: 70%;
  margin-top: 1rem;
  margin-left: auto;
  margin-right: auto;   
  display: flex;
  flex-direction: column;   
}

#accordion h2 {
  margin-top: -5px;
  margin-bottom: 30px;
  text-align: center;
  color: white;
  font-size: 1em;
  font-weight: 100;
}

#accordion input[type="radio"] {
  display: none;
}

.question {
  padding: 20px;
  overflow: hidden;
  font-size: 1em;
  font-weight: bold;
  text-align: left;
  border: 1px solid #eee;
  border-radius: 10px;
  cursor: pointer;
  transition: box-shadow 0.3s, border-color 0.3s;
  background-color: white;
}

#q1:checked + .question,
#q2:checked + .question,
#q3:checked + .question,
#q4:checked + .question,
#q5:checked + .question,
#q6:checked + .question,
#q7:checked + .question,
.question:hover {
  border-color: #bee000;
  box-shadow: 0 0 5px #bee000;
}

/* ------ answers hidden ------ */

.answer {
  max-height: 0;
  overflow: hidden;
  margin-bottom: 0.2rem;
  padding: 0 20px;
  border-radius: 10px;
  transition: max-height 0.5s ease, padding 0.5s ease;
  background-color:rgba(224, 224, 224, 0.486);
}

/* ---- Show answer when checked ---- */

#q1:checked + .question + .answer {  
  max-height: 100px;
  padding: 20px;
}
#q2:checked + .question + .answer {
  max-height: 100px;
  padding: 20px;
}
#q3:checked + .question + .answer {
  max-height: 100px;
  padding: 20px;
}
#q4:checked + .question + .answer {
  max-height: 100px;
  padding: 20px;
}
#q5:checked + .question + .answer {
  max-height: 100px;
  padding: 20px;
}
#q6:checked + .question + .answer {
  max-height: 100px;
  padding: 20px;
}

#q7:checked + .question + .answer {
  max-height: 100px;
  padding: 20px;
}

/* ------------------------------------------------ contact content area --- */

#contact-main{
  grid-area: content;
  width: 100%;
  background: linear-gradient(to bottom, #6495ed, #ffffff);
  text-align: center;
  padding: 1rem;
}

#contact-main h1 {  
  font-size: 1.5rem;
  margin-bottom: 10px;
}

#contact-main p {
  color: white;
}

#form-area {
  display: flex;
  max-width: 800px;
  height: 400px;
  margin: 20px auto;
  background: linear-gradient(0deg,#ffffff 30%, #6494ed3a 100%);    
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  overflow: hidden;    
}

#form-area  h2 {
  display: none;
}

.form-info {  
  width: 400px;  
  background-image: url(/images/po-box.png); 
  padding-top: 225px;
  padding-left: 5px;
  text-align: center;
  color: white;    
}


.form-fields {
  flex: 1;
  padding: 15px;
}

h2 {
  margin-top: 0;      
}

form {
  display: flex;
  flex-direction: column;    
}

label {
  text-align: left;    
  margin-bottom: 0.2rem;
  font-size: .8rem; 
}
    
input, select, textarea {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 0.5rem;
  resize: vertical;
  font-family: 'Helvetica', Arial, sans-serif;
}

textarea {
  min-height: 100px;
}  

.form-field:hover {
  border-color: #bee000;
  box-shadow: 0 0 5px #bee000;
  transition: box-shadow 0.3s ease;
}

.buttons {
  margin-top: 0.8rem;
  display: flex;
  gap: 10px;       
}

.btn-submit {
  width: 70%;
  padding: 15px;   
  background-color: #bee000;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.btn-submit:hover {
  background-color: #c5e700;
}

.btn-reset {
  width: 30%;
  padding: 15px;    
  background-color: #ccc;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.btn-reset:hover {    
  background-color: #e5e5e5;    
}

.map {
    border: 5px solid green;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/* ------------------------------------------------ Error-404 Content Area --- */

#error-main {
  grid-area: content;
  width: 100%;
  justify-items: center;  
  background: linear-gradient(to bottom, #6495ed, #ffffff);
}

#error-main figure {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ------------------------------------------------ footer area --- */

#footer {  
  grid-area: footer;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;  
  margin-top: auto;
  padding: 1em;
  font-size: 0.8rem;
  color: white;
  background-color: #6495ed;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  box-sizing: border-box;
  position: relative;  
}

.design {
  margin-top: auto;  
  margin-right: auto;
}

.social-list {
  margin-left: auto;
  margin-right: auto;
  margin-top: 5px;
  display: flex;
  justify-content: space-evenly;
  width: 160px;
  list-style: none;
}

.social-list :hover {
  display: block;
  border-radius:50%;
  box-shadow: 0px 0px 6px #bee000;
  transition: box-shadow 0.3s ease;
}

.copyright {
  margin-top: auto;
  margin-left: auto;
}

/* -------------------------- mobile responsive ------------------ */

@media (max-width: 700px) {

  #wrapper {
    width: 100%;
  }

  /* ------------------------------------------- header mobile --- */

  .download-btn {
    display: none;
  }

  header {
    width: 100%;
    position: fixed;
    padding-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  }

  nav {
    display: none;
  }

  /* -- hamburger menu fixed at top right achived with help of AI -- */

  .hamburger {
    display: flex;
    position: fixed; 
    top: 1.2rem;
    right: 1.5rem;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 1000;
  }

  .hamburger span {
    display: block;
    height: 4px;
    background-color: #333;
    width: 100%;
  }

  .menu {
    display: none; /* default hidden in small screens */
    position: fixed; 
    top: 60px; /* below hamburger */
    right: 1rem;
    width: 200px;
    background: #fff;
    border: 1px solid #ccc;
    list-style: none;
    padding: 0;
    margin: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  }

  #hamburger-toggle:checked + .hamburger + .menu {
    display: block;
  }

  .menu li {
    border-bottom: 1px solid #ccc;
  }

  .menu li:last-child {
    border-bottom: none;
  }

  .menu a {
    display: block;
    padding: 1rem;
    text-decoration: none;
    color: #333;
  }

  .menu a:hover {
    background-color: #eee;
  }  

  /* ------------------------------------------- index mobile --- */

  .intro {
    grid-template-areas:
      "img"
      "txt"       
    ;
    grid-template-columns: 1fr;
    width: 90%;
    margin: 0 auto ;
    font-size: 1rem;
  }

  .intro p {
    margin-top: 1rem;
    margin-left: 1rem;
    font-size: 1.2em;
  }

  .intro h1 {
    margin-left: 1rem;
    margin-top: 5rem;
    font-size: 1.5em;
  }

  .intro h2 {
    margin-top: 12rem;
    margin-left: 1rem;    
    font-size: 1em;
  }

  .intro img {
    display: block;
    margin: 2rem auto;
    max-width: 90%;
  }
  
  #cards {
    flex-direction: column;
    align-items: center;
    padding: 1rem;
  }

  .card {
    width: 90%;
    background-color: rgb(255, 255, 255,0.5);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);    
  }

  /* ------------------------------------------- features mobile --- */

  #features-main p {
    margin: 0.5rem;   
}
  
  .grid-container {
    grid-template-columns: 1fr;
    grid-template-areas:
        "image"
        "a1"
        "a2"
        "a3"
        "a4"
        "a5"
        "a6"
        "a7"
        "a8";
  }

  .image-column img {
    max-width: 300px;
  }

  /* ------------------------------------------- screenshots mobile --- */

  #main-shots{
    width: 100%;    
  }

  .gallery {
    grid-template-columns: 1fr;
    row-gap: 55px;    
  }

  .gallery img {
    scale: 1.2;  
  }

  /* ------------------------------------------- contact mobile --- */

  #contact-main{
    height: auto;       
  }

  #contact-main p {    
    color: white;
    margin-bottom: 1.5rem; 
  }

  #form-area {
    width: 100%;
    height: auto;   
    margin: 50px auto 0 auto;
    flex-direction: column;
    box-shadow: none;
    background-color: #6494ed;    
  }

  .form-info {
    display: none;
  }

  .form-fields {    
    width: 100%;
    background: linear-gradient(0deg,#ffffff 30%, #6494ed3a 100%);      
  }

  label {    
    margin-top: 0.5rem;
    font-size: 1rem;  
  }

  .buttons {
    width: 100%;
    flex-wrap: wrap;        
  }

  .btn-submit {
    width: 100%;
  }

  .btn-reset {
    width: 100%;    
  }

  .map {
    width: 95%;
    margin-top: 20px;
  }

 /* ------------------------------------------- faq mobile --- */

  #accordion {
  flex: 1;    
  width: 95%;
  }

  .answer {
    margin-bottom: -5px;
  }

  /* -------------------------------------------footer mobile --- */

  #footer {
    font-size: 0.5rem;
  } 

}