*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #fff;
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
}

a {
    text-decoration: none;
    color: #2a92e5;
}

.bold_blue {
    font-weight: 700;
    color: #2a92e5;
}

header {
    top: 0;
    left: 0;
    position: fixed;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 40px 100px;
    transition: 0.6s ease;
    z-index: 10000;
}

header.sticky {
    padding: 20px 100px;
    background-color: #2a92e5; 
}

/* Mobile header styling */

@media screen and (max-width: 1080px) {
    header {
        padding: 40px 40px;
    }

    header.sticky {
        padding: 20px 40px;
    }
}

/* Header Menu Content */

header .logo {
    position: relative;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
}

header nav ul {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    text-transform: uppercase;
}

header nav ul li:hover {
    transform: scale(1.05);
    transition: 0.3s ease;
}

header nav ul li a {
    position: relative;
    margin: 0 15px;
    text-decoration: none;
    color: #fff;
    letter-spacing: 2px;
    font-weight: 700;
    font-size: 1.2rem;
    text-align: center;
}

/* Smaller Screen Styling for desktop menu */

@media screen and (max-width: 1080px) {
    
    header .logo {
        font-size: 0.8rem;
    }
    
    header nav ul li a {
        font-size: 1rem;
    }
}

@media screen and (max-width: 850px) {
    header .logo {
        font-size: 0.6rem;
    }

    header nav ul li a {
        font-size: 0.8rem;
    }
}

@media screen and (max-width: 430px) {
    header .logo {
        font-size: 0.5rem;
    }
}

/*mobile menu*/

#hamburger_icon {
    margin: auto 0;
    display: none;
    cursor: pointer;
}

#hamburger_icon div {
    width: 35px;
    height: 3px;
    background-color: white;
    margin: 6px 0;
    transition: 0.4s;
}

.open .bar1 {
    -webkit-transform: rotate(-45deg) translate(-6px, 6px);
    transform: rotate(-45deg) translate(-6px, 6px);
}
  
.open .bar2 {
    opacity: 0;
}
  
.open .bar3 {
    -webkit-transform: rotate(45deg) translate(-6px, -8px);
    transform: rotate(45deg) translate(-6px, -8px);
}

.mobile_menu {
    text-transform: uppercase;
    position: absolute;
    font-size: 1.1rem;
    top: 70px;
    left: 0;
    width: 100%;
    min-width: 100%;
    transition: 0.6s;
    opacity: 0;
    transform: translateY(-25px);
    transition: opacity 0.6s, transform 0.6s;
    z-index: 999;
}


.open .mobile_menu {
    justify-content: space-between;
    opacity: 1;
    transform: translateY(0);
    z-index: 1000;
}

.mobile_menu.sticky {
    background-color: #2a92e5;
}

.mobile_menu li a {
    color: #fff;
    text-decoration: none;
}

#mobile_home {
    padding-top: 30px;
}

.mobile_menu li {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 5px 5px 5px;
    margin-bottom: 10px;
    list-style: none;
    color: #fff;
}

@media screen and (max-width: 850px) {
    header nav {
        display: none;
    }

    #hamburger_icon {
        display: block;
    }
}

@media screen and (max-width: 600px) {
    header nav {
        display: none;
    }

    #hamburger_icon {
        display: block;
    }
}

/* Header Image and Text */

.banner {
    position: relative;
    height: 75vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    object-fit: cover;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

}

.banner h1, .banner h2, .banner p {
    color: #fff;
    margin: 5px;
}

.banner h1 {
    text-transform: uppercase;
    font-size: 3.5rem;
}

/* Banner Background Images */

#index_banner {
    background: linear-gradient(0deg, rgb(255, 255, 255), rgba(35, 35, 35, 0.6), rgba(35, 35, 35, 0.95)), url(media_files/Ace_Digital_Header_Home.jpg);
    background-size: cover;
}

#get_free_advice_banner {
    background: linear-gradient(0deg, rgb(255, 255, 255), rgba(35, 35, 35, 0.6), rgba(35, 35, 35, 0.95)), url(media_files/get_free_advice.jpg);
    background-size: cover;
}

#free_consultation_banner {
    background: linear-gradient(0deg, rgb(255, 255, 255), rgba(35, 35, 35, 0.6), rgba(35, 35, 35, 0.95)), url(media_files/free_consultation.jpg);
    background-size: cover;
}

#seo_banner {
    background: linear-gradient(0deg, rgb(255, 255, 255), rgba(35, 35, 35, 0.6), rgba(35, 35, 35, 0.95)), url(media_files/seo.jpg);
    background-size: cover;
}

#social_media_marketing_banner {
    background: linear-gradient(0deg, rgb(255, 255, 255), rgba(35, 35, 35, 0.6), rgba(35, 35, 35, 0.95)), url(media_files/social_media_marketing.jpg);
    background-size: cover;
}

#ppc_page_banner {
    background: linear-gradient(0deg, rgb(255, 255, 255), rgba(35, 35, 35, 0.6), rgba(35, 35, 35, 0.95)), url(media_files/ppc_page_header_image.jpg);
    background-size: cover;
}

/* Banner Background Images End */

#home_header_button {
    margin: 15px;
    padding: 15px;
    background-color: #2a92e5;
    border: 2px solid #2a92e5;
    color: #fff;
    text-transform: uppercase;
    font-size: 1rem;
    font-weight: 700;
}

/* Smaller Screen Styling for Header Image and Text */

@media screen and (max-width: 850px) { 
    .banner h1 {
        font-size: 2.5rem;
    }

    .banner h2 {
        font-size: 1.2rem;
    }
    
    #home_header_button {
        margin: 1.02rem;
        padding: 1.02rem;
        font-size: 0.9rem;
    }
}


@media screen and (max-width: 600px) { 
    .banner {
        height: 80vh;  
    }
    
    .banner h1 {
        font-size: 2rem;
    }

    .banner h2 {
        font-size: 1rem;
    }
    
    #home_header_button {
        margin: 1.02rem;
        padding: 1.02rem;
        font-size: 0.9rem;
    }
}

/* Main Content */

.main_content_wrapper {
    min-height: 70vh;
    display: flex;
    flex-direction: row; /* Ensure this is explicitly set if you want horizontal layout */
    align-items: center; /* Keeps items vertically centered */
    justify-content: space-between; 
    margin: 50px auto;
    width: 90%;
}

.animated_image {
    margin: 30px;
    padding: 25px;
    width: 50%;
    transform: translate(0%, 20%);
    transition: 1s ease;
    opacity: 0%;
}


.animated_image.show {
    transform: translate(0%, 0%);
    opacity: 100%;
    
}

.main_text {
    padding: 50px 50px;
}

.centre_aligned_content {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    margin: 50px 0;
}

.centre_aligned_content {
    justify-content: center;
    align-items: center;
}

.centre_aligned_content .main_text_white,
.centre_aligned_content .main_text {
    padding: 50px 100px;
    width: 75%;
}

#home_page_testimonials {
    min-height: 100vh !important;
}

@media screen and (max-width: 1080px) {
    .main_content_wrapper {
        flex-direction: column;
        width: 100%; /* Ensure this is explicitly set if you want horizontal layout */
        min-height: 25vh;
    }

    .image_wrapper {
        margin: 20px;
        padding: 20px;
        width: 100%;
    }
    
    .animated_image {
        margin: 0;
        padding: 0;
        width: 100%;
    }

    .main_text {
        width: 100%;
        padding: 25px;
    }
    
    .centre_aligned_content .main_text_white,
    .centre_aligned_content .main_text {
        padding: 50px;
        width: 100%;
    }
}

@media screen and (max-width: 600px) {

    .main_text {
        width: 100%;
    }

    
    .centre_aligned_content .main_text_white,
    .centre_aligned_content .main_text {
        padding: 50px 25px;
        width: 100%;
    }
    
    #home_page_testimonials {
        min-height: 100vh !important;
    }
}

/* Text with Image */

.text_content_image {
    padding: 50px 100px;
    height: 100vh;
}

/* Main Section Styling */

.title_centre {
    text-align: center;  
    padding: 10px 0 50px 0 !important;
    font-size: 3rem !important;
}

.main_text h1,
.main_text_white h1,
.text_content_wrapper h1 {
    padding: 20px 0;
    font-size: 2.4rem;
    text-transform: uppercase;

}

.main_text h2,
.main_text_white h2,
.text_content_wrapper h2 {
    padding: 10px 0;
    font-size: 2rem;
    text-transform: uppercase;
}

.main_text h3,
.main_text_white h3,
.text_content_wrapper h3 {
    padding: 10px 0;
    font-size: 1.8rem;
    text-transform: uppercase;
}

.main_text p,
.main_text_white p,
.text_content_wrapper p,
.text_content_wrapper li {
    font-size: 1.2rem;
    padding: 10px 0;
}

.text_content_wrapper ul {
    margin-left: 40px;
}

/* Text Size for larger screens */
@media screen and (min-width: 2560px) {
    .title_centre {
    font-size: 4rem !important;
    }

    .main_text h1,
    .main_text_white h1,
    .text_content_wrapper h1 {
        font-size: 2.8rem;

    }

    .main_text h2,
    .main_text_white h2,
    .text_content_wrapper h2 {
        font-size: 2.4rem;
    }

    .main_text h3,
    .main_text_white h3,
    .text_content_wrapper h3 {
        font-size: 2rem;
    }

    .main_text p,
    .main_text_white p,
    .text_content_wrapper p,
    .text_content_wrapper li {
        font-size: 1.6rem;
}

}

/* Text Size for larger screens */

@media screen and (max-width: 600px) {
    .title_centre {
    font-size: 1.8rem !important;
    }

    .main_text h1,
    .main_text_white h1,
    .text_content_wrapper h1 {
        font-size: 1.8rem;

    }

    .main_text h2,
    .main_text_white h2,
    .text_content_wrapper h2 {
        font-size: 1.4rem;
    }

    .main_text h3,
    .main_text_white h3,
    .text_content_wrapper h3 {
        font-size: 1.2rem;
    }

    .main_text p,
    .main_text_white p,
    .text_content_wrapper p,
    .text_content_wrapper li {
        font-size: 1rem;
}

}

/* Main Section Text Colour */

.main_text_white {
    color: #fff;
}

.text_content_wrapper h1,
.text_content_wrapper h2,
.text_content_wrapper h3,
.main_text h1,
.main_text h2,
.main_text h3 {
    color: #2a92e5;
}

.main_section_content_text p,
.main_text p {
    color: #000;
}

/* Text annimation */

#main_services h3:hover {
    transform: scale(1.008);
    transition: 0.5s ease;
}

/* Text with image about page */

.text_image_wrapper {
    margin: 100px auto;
    width: 75%;
}

.text_image_wrapper .right_image {
    float: right;
    margin: 30px;
    max-width: 1000px;
    margin-top: 0;
}

@media screen and (max-width: 1080px) {
    .text_image_wrapper {
        margin: 50px auto;
        width: 90%;
    }
}

/* Specific Styling for sections */

#home_page_development {
    background-image: linear-gradient(rgba(42, 146, 229, 0.9), rgba(23, 57, 137, 0.9)), url(media_files/home_page_development.jpg);
    text-align: center;
}

/* Specific Styling for sections mobile */

@media screen and (max-width: 1080px) {
    .no_mobile {
        display: none;
    }
}

/* Footer Styling */

footer {
    margin: 0;
    padding: 0;
}

#footer_wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    transition: 0.6s ease;
    padding: 25px 50px;
    background-color: #2a92e5;
    color: #fff;
    transform: translate(0%, 100%);
}

#footer_wrapper.show {
    padding: 100px 50px;
    transform: translate(0%, 0%);
}

#footer_info {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
}

#footer_info p {
    font-size: 0.79em;
}

@media screen and (max-width: 600px) {  
    #footer_wrapper {
        flex-direction: column;
        justify-content: center;
    }

    #footer_wrapper.show {
        padding: 50px 50px;
    }

    #footer_wrapper h1 {
        font-size: 1.6em;
    }

    #footer_contact {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: 10px auto;
    }

    .phone_number {
        flex-direction: row;
    }

    #footer_info {
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        margin: 10px auto;
    }
    
    #footer_info p {
        font-size: 1em;
    }
}

/* Form Styling */

/* Basic styling for the form wrapper */
.form_wrapper {
    max-width: 600px; /* Adjusts the maximum width of the form */
    margin: 0 auto; /* Centers the form on the page */
    padding: 20px;
    background-color: #f9f9f9; /* Light grey background */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Subtle shadow for depth */
    margin: 50px auto 50px 20px
}

.form_wrapper h1 {
    color: #2a92e5;
    margin: 20px auto;
}

/* Style for each label wrapping an input or textarea */
form label {
    display: block; /* Makes each label block-level to stack vertically */
    margin-bottom: 15px; /* Adds space between each form field */
    font-family: Arial, sans-serif; /* Sets the font for the labels */
}

/* Style for input fields */
input[type="text"],
input[type="email"],
textarea {
    width: 100%; /* Makes input fields take up 100% of their parent's width */
    padding: 8px; /* Adds some padding inside the inputs */
    margin-top: 5px; /* Adds a little space above the inputs */
    border: 1px solid #ddd; /* Adds a border */
    border-radius: 4px; /* Rounds the corners of the input fields */
    box-sizing: border-box; /* Ensures padding doesn't affect the total width */
}

/* Style for the textarea */
textarea {
    height: 100px; /* Sets a fixed height */
    resize: vertical; /* Allows the user to resize the textarea vertically */
}

/* Style for the submit button */
button[type="submit"] {
    background-color: #2a92e5; /* Blue background */
    color: white; /* White text */
    padding: 10px 20px; /* Padding inside the button */
    border: none; /* No border */
    border-radius: 4px; /* Rounded corners */
    cursor: pointer; /* Changes cursor to a pointer on hover */
    font-size: 16px; /* Larger font size */
}

button[type="submit"]:hover {
    background-color: #0056b3; /* Darker blue on hover */
}

