/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
  scroll-behavior: smooth; 
}
body {
    width: 100%;
    margin-inline: auto;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
    background-image: url('/img/theros-build1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment:fixed;
}

/* Main Logo */
.main__logo {
    font-size: 3rem;
    font-weight: bold;
    padding: 20px;
    color: #fff;
}

.main__logo a {
    color: inherit;
    text-decoration: none;
    margin-left: 50px;
    transition: ease-in-out 0.3s;
}

.main__logo a:hover {
    opacity: 0.8;
}

/* Navigation Bar */
nav {
    background-color: #d1d1d186;
    color: #fff;
    padding: 15px;
    text-align: center;
    border-style: solid;
    border-color: #333;
    border-width: 1px 0px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

}

#navbar{
    position: sticky;
    top: 0;
    overflow: hidden;
    z-index: 1000;
}

nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 20px;
    font-size: 1.2rem;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease-out, color 0.3s ease-out;
}

nav a:hover,  nav a.active {
    background-color: #ff6347;
    color: #fff;
}

/* Image Section */
.central-info-section {
    width: 750px;
    color: rgb(255, 115, 0);
    background-color: #333333b4;
    border-radius: 8px;
    text-align: center;
    position: relative;
    margin: 210px auto;
    padding: 25px 0px;
}



/* Body Content */
.content {
    width: 100%;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.content img{
    width: 100%;
    border-style: solid #ff6347 2px;

}

.content h1 {
    width: 50%;
    margin-bottom: 20px;
    border-style: solid;
    border-width: 0 0 2px 0;
    border-color: #ff6347; 
}

.content .content__body {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.content p {
    width: 50%;
    font-size: 1.1rem;
}

/* This is the main content section */
.content-services {                         
    background-color: #f4f4f4;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    justify-content:space-evenly ;
    gap: 50px; /* Even spacing between items */
    max-width: 100%;
    margin: 0px auto;
    padding: 25px;    
}

.content-services > div {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    aspect-ratio: 1 / 1; /* Makes items square */
    border: solid 1px #ff6347;
}

.content-services img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
    filter: brightness(0.8);
}

.content-services > div:hover img {
    transform: scale(1.1);
    filter: brightness(1);
}

.content-services p {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    margin: 0;
    text-align: center;
    font-size: 18px;
}

.hover-text {
    position: absolute;
    top: 90%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 24px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
    z-index: 2;
}

.content-services > div:hover .hover-text {
    opacity: 1;
}

.content-services > div::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.content-services > div:hover::after {
    opacity: 1;
}


/* This is the contact section */
.contact-form{                      
    background-color: #f4f4f4;
    position: relative;
    display: grid;
    grid-template-rows: 1fr;
    grid-template-columns: 1fr 1fr;
    justify-items: center;
    align-items: center;
    text-align: center;
    justify-content:space-evenly ;
    padding-top: 20px;
    padding-bottom: 20px;

}

.contact-form-grid1 {
    width: 95%;
    position: relative;
    border-radius: 8px;
    border: solid 2px #ff6347;
    padding: 30px 40px;
}

.contact-form-grid2{
    width: 95%;
    display: grid;
    grid-template-rows: 50px 1fr;
    position: relative;
    border: solid 2px #ff6347;
    border-radius: 8px;
    padding: 30px 40px;

}

/* This is just the form layout */
input {
  width: 90%;
  padding: 12px;
  margin: 8px 0;
  background: #d4d4d4;
  border: solid 1px;
  border-top: none;
  border-left: none;
  border-right: none;
  border-radius: 5px;
  outline: none;
}

textarea{
    width: 90%;
    height: 150px;
    padding: 12px;
    margin-top: 20px;
    background: #d4d4d4;
    border: solid 1px;
    border-top: none;
    border-left: none;
    border-right: none;
    border-radius: 5px;
    outline: none;
    resize: none;
}

textarea:focus::placeholder{
  color: transparent;
}

textarea::placeholder{
  color: #222;
  transition: color 0.3s ease;
}

button{
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  border: none;
  border-radius: 5px;
  box-sizing: border-box;
  outline: none;
}

input:focus::placeholder{
  color: transparent;
}

input::placeholder{
  color: #222;
  transition: color 0.3s ease;
}

.btn-submit{
    background-color: forestgreen;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 40px;

}
.content-services
footer a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
}

footer a:hover {
    text-decoration: underline;
}

.contact__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 50%; /* Adjust width as needed */
    margin: 0 auto; /* Centers the div horizontally */
    padding: 20px;
    background-color: white; /* Optional for visibility */
    border-radius: 10px; /* Optional for styling */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Optional for styling */
    margin-top: 20px;
}

.contact__content p{
    font-size: 1.1rem;
}