@media (prefers-reduced-motion: no-preference){
* {
  scroll-behavior: smooth;
}
}

@media (max-width: 768px) {
  p,
  .text-block p,
  .content p {
    width: 100%;
    max-width: 100%;
    padding: 0 10px;
    margin: 0;
    box-sizing: border-box;
    text-align: left; 
  }

  .introduction {
    flex-direction: column;
    text-align: center;
  }

  #intro-pic {
    width: 100%;
    padding: 0;
  }

}

@media (max-width: 768px) {

  header {
    flex-direction: column;     
    align-items: center;        
    padding: 10px 15px;
  }

  .header-left {
    flex-direction:row-reverse;     
    align-items: center;
    gap: 6px;                   
  }

  .text-stack h1 {
    font-size: 35px;            
    text-align: center;
    margin: 0;
  }

  .text-stack h2 {
    font-size: 12px;            
    text-align: center;
    margin: 0;
  }

  .divider {
    width: 70%;                 
    margin: 4px 0;
  }

  nav {
    margin-top: 10px;           
    width: 100%;
  }

  nav > ul {
    justify-content: center;     
    gap: 10px;  
    display: flex;                 
  }

}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 300px; 
  }
}

html {
  scroll-padding-top: 170px; 
}

html, body {
  overflow-x: hidden;
}

body {
  background: #fafafa;
  color: #1b1b32;
  font-family: Helvetica;
  margin: 0;
}

header { 
  display: flex; 
  align-items: center;  
  background-color: black; 
  padding: 13px; 
  justify-content: center; 
  position: fixed; 
  width: 100%; 
  flex-direction: column;
   z-index: 9999; 
  }

.header-left {
  display: flex;
  align-items: center; 
  gap: 12px; 
}

.divider {
  width: 100%;
  border-bottom: 1px solid #e0e0e0;
  margin: 2px 0; 
}

nav {
  width: auto;
  max-width: none;
  height: auto;
  margin-top: 5px;
}

nav > ul {
  display: flex;
  gap: 15px;
  list-style: none;
  padding: 0;
  margin: 0;
}
nav > ul > li {
  color: #dfdfe2;
  padding: 0.4rem 0.8rem; 
  margin-top: 10px;
  font-size: 16px;
  border-radius: 6px; 
  transition: all 0.3s ease; 
}

@media (max-width: 768px) {
  nav > ul > li {
    font-size: 13px;             
    padding: 0.5rem 0.3rem;
  }
}

nav > ul > li:hover {
  background-color: #dfdfe2; 
  color: #1b1b32; 
  transform: translateY(-2px); 
  box-shadow: 0 4px 8px rgba(0,0,0,0.2); 
  cursor: pointer;
}

li > a {
  color: inherit;
  text-decoration: none;
}

h1, h2{
    color: #fafafa;
    margin: 10px;
}

h1 {
    font-size: 45px;
    font-weight: 400;
    padding-bottom: 17px;
}

@media (max-width: 768px) {
  h1 {
    font-size: 60px;
    font-weight: 400;
    padding-bottom: 17px;
    padding-top: 14px;
}
}

h2 {
    font-weight: lighter;
    margin-bottom: 4px;
    margin-top: 2px;
    font-size: 13px;
    font-style: italic;
    font-family:Arial, Helvetica, sans-serif ;
    text-align: center;
    padding-bottom: 10px;
}

@media (max-width: 768px) {
  h2 {
    font-weight: lighter;
    margin-bottom: 4px;
    margin-top: 2px;
    font-size: 13px;
    font-style: italic;
    font-family:Arial, Helvetica, sans-serif ;
    text-align: center;
    padding-bottom: 13px;
}
}


.logo {
  height: 90px; 
  width: auto;
}

@media (max-width: 768px) {
  .logo {
    height: 70px; 
    width: auto;
  }
}

.text-stack h1, .text-stack h2 {
  margin: 0; 
  color: #fafafa;
}

main {
  padding-top: 167px; 
}

p {
  font-family: Verdana, Tahoma;
  width: 70%; 
  font-style: italic;
  line-height: 1.5;
  padding: 0 0 0 34px; 
}

#intro-pic{
    width: 40%;
    padding-top: 5px;
    padding-right: 20px;
}

#intro-pic, p{
    align-items:baseline;
}

.introduction {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;           
  padding-bottom: 50px;
  background-color: #fafafa;  
  margin-bottom: 0px;
  margin-top: 0px;      
}

.text-block {
  display: flex; 
  flex-direction: column;
}

.text-block h3 {
  margin: 0 0 10px 34px; 
  font-family: Verdana, Tahoma;
  font-size: 36px;
  color: #1b1b32;
  text-align: center;
}

.text-block p {
  font-family: Verdana, Tahoma;
  font-size: 25px;
  font-style: italic;
  line-height: 1.5;
  padding-left: 0;             
  margin: 0 auto 0 auto;       
  max-width: 60%;              
  text-align: center;          
}

h4 {
    font-size: 50px;
    text-align: center;
    margin-top: -50px;
}
.section2{
    background-image: url("images/solar.geyser.jpg");
    width: 100%;
    background-size: cover;
    padding: 60px 20px;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.content{
  color: #ebebeb;
}

.content p {
  font-family: Verdana, Tahoma;
  font-size: 25px;
  line-height: 1.6;
  font-style: italic;
  width: 95%;        
  max-width: none;            
  text-align: center;
  margin-right: 50px;
}

h5 {
  font-family: Verdana, Tahoma;
  font-size: 50px;
  text-align: center;
}

.categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px; /* space between boxes */
  padding: 20px;
}

.category {
  border: 1px solid #1b1b32;
  display: flex;
  flex-direction: column; 
  gap: 10px; 
  padding: 10px;
  background-color: #fff;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.category:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.category .title {
  font-weight: bold;
  font-size: 19px;
  color: #1b1b32;
  margin: 0;
}

.category .exp {
  font-weight: normal;
  font-size: 16px;
  color: #555;
  margin: 0;
}

.line {
  height: 2px;           
  border-bottom: 1px solid #1b1b32; 
  flex-grow: 0;          
  margin-top: 2px;
}

.categories h5 {
  grid-column: 1 / -1; 
  text-align: center;
  margin-bottom: 20px;
}

.exp {
  font-weight: normal;       
  font-size: 16px;           
  color: #555;               
  margin-top: 5px;           
}

.slideshow {
  position: relative;
  width: 100%;
  margin: auto;
  max-width: 800px;
  overflow: hidden;
  max-height: 550px;
  padding-bottom: 20px; 
  box-sizing: border-box;
  border: 1px solid #1b1b32;
  border-radius: 1px;
}

@media (max-width: 768px) {
  .slideshow {
  max-height: 500px;
}
}

.slide {
  display: none;
  width: 100%;
}

.slide.active {
  display: block;
}

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
}
.prev { left: 10px; }
.next { right: 10px; }

.contact{
  background-color: #4B4B4B;
  margin-bottom: 0px;
}

h6{
  font-size: 50px;
  text-align: center;
  padding-top: 35px;
  color: #fafafa;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

.contact-form label {
  font-weight: 800;
  margin-bottom: 5px;
  color: #fafafa;
  font-size: 20px;
  font-family: Verdana, Tahoma;
}

.contact-form input,
.contact-form textarea {
  background: rgb(92, 92, 92);
  border: 1px solid #666666 ;
  border-radius: 8px;
  padding: 12px 15px;
  color: #fafafa;
  font-size: 1rem;
  resize: vertical;
  transition: border-color 0.3s ease;
   margin: 0px 10px;
}

.contact-form button:hover {
  background-color: #a6a6a6;

}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #a6a6a6 ;
  outline: none;
  box-shadow: 0 0 8px #d9d9d9;
}

.contact-form button {
  background-color: #e0e0e0;
  border: none;
  border-radius: 8px;
  padding: 15px;
  font-weight: 900;
  font-size: 1.1rem;
  color: #000;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-family: Verdana, Tahoma;
}

@media (max-width: 768px) {
  .contact-form button {
  background-color: #e0e0e0;
  border: none;
  border-radius: 8px;
  padding: 15px;
  font-weight: 900;
  font-size: 1.1rem;
  color: #000;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-family: Verdana, Tahoma;
   margin: 0px 10px;
  }
}

.contact-form button:hover {
  background-color: #a6a6a6;
}

.contact-details {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  font-size: 1rem;
  color: #e0e0e0;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 15px;
  padding-bottom: 15px;
}

.contact-details a{
  color: #fafafa;
  font-family: Helvetica;
  font-size: 18px;
  text-decoration: none;
}

.contact-details a:hover{
  color:#a6a6a6;
}

footer{
  color: #a6a6a6;
  background-color: #4B4B4B;
  padding-top: 13px;
  padding-bottom: 13px;
}

footer p{
  font-size: 12px;
}