/* Variables for colors, dimensions, and fonts */
:root {
    --color-black: #3C3C3B;
    --color-white: #FCFEFF;
    --color-blue: #489FB5;
    --color-red: #DB5461;
    --color-purple: #A4508B;
    --color-light-gray: #f9f9f9; /* Light gray color */
    --color-gray: #e0e0e0; /* Gray color */
    --color-primary:var(--color-blue); /* Primary color */
    --color-secondary: var(--color-black); /* Secondary color */
    --font-primary: 'Bebas Neue', sans-serif;
    --font-secondary: 'Bubbleboddy', sans-serif;
    --border-radius: 0.5rem;
    --scrollbar-thumb: #888;
    --scrollbar-track: #f1f1f1;
    --logo-bg: var(--color-white);
    --container-padding: 20px;
    --container-max-width: 1200px;
    --header-bg: #489FB5;
}
/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* Base Styles */
html {
    scroll-behavior: smooth;
      scroll-padding-top: var(--scroll-padding-top);
}
body {
    font-family: var(--font-secondary), serif;
    line-height: 1.6;
    color: var(--color-black);
    background-color: var(--color-white);
}
 body, html {
            margin: 0;
            padding: 0;
            height: 100%;
        }
main {
    padding: 20px;
    max-width: var(--container-max-width);
    margin: 0 auto;
}
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2; /* Consistent line height */
    margin-bottom: 20px; /* Consistent margin */
    font-family: var(--font-primary), serif; /* Use primary font */
    color: var(--color-black); /* Consistent heading color */
        font-weight: normal;
}
h1 {
    font-size: 2em; /* Base font size for mobile */
}
h2 {
    font-size: 1.75em; /* Slightly smaller than h1 */
}
h3 {
    font-size: 1.5em; /* Smaller than h2 */
}
h4 {
    font-size: 1.25em; /* Smaller than h3 */
}
h5 {
    font-size: 1em; /* Smaller than h4 */
}
h6 {
    font-size: 0.875em; /* Smallest heading */
}
 p {
    font-size: 1.2em; /* Base font size for mobile */
    line-height: 1.4; /* Adjust line height */
    margin-bottom: 30px;
    font-family: var(--font-secondary), serif; /* Use secondary font */
    color: var(--color-black); /* Consistent text color */
}
ul {
    list-style: none;
    padding: 0;
}
a {
    text-decoration: none;
    color: inherit;
}
img {
    max-width: 100%;
    height: auto;
        border-radius: var(--border-radius); /* Use the defined border-radius */

}
/* Global Button Styles */
.btn {
    padding: 15px 30px; /* Increase padding */
    font-size: 1.2em; /* Increase font size */
    text-decoration: none;
    border-radius: var(--border-radius); /* Use the defined border-radius */
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transitions */
    font-family: var(--font-secondary), serif; /* Use secondary font */
    border: none;
}
.btn-primary {
    background-color: var(--color-blue); /* Use black from variables */
    color: var(--color-white); /* White text color */
    box-shadow: 0 2px 4px var(--color-black); /* Subtle shadow */
    border: 2px solid var(--color-blue); /* Blue border */
}
.btn-secondary {
    background-color: var(--color-white); /* Use white background */
    color: var(--color-blue); /* Black text color */
    border: 2px solid var(--color-blue); /* Black border */
    box-shadow: 0 2px 4px var(--color-blue); /* Subtle shadow */
}
.btn-primary:hover {
    background-color: var(--color-white); /* Change background to blue on hover */
    color: var(--color-blue); /* Blue text color on hover */
        border: 2px solid var(--color-blue); /* Black border */

}
.btn-secondary:hover {
    background-color: var(--color-blue); /* Change background to black on hover */
    color: var(--color-white); /* White text color on hover */
}
.btn-invert {
        width: 100%!important;
       box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Add a subtle shadow */
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;

}
/* Header and Navigation Styles */
header {
    width: 100%;
    background-color: var(--header-bg);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0; /* Make the header stick to the top of the viewport */
    z-index: 1000; /* Ensure the header is on top of other content */
}
/* Logo and Menu Button Section */
.logo-container {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Vertically aligns both the logo and the button */
    background-color: var(--color-white); /* White background for logo and button */
    padding: 15px 20px; /* Even padding top and bottom */
    width: 100%;
}
.logo img {
    max-height: 75px;
        box-shadow: none; /* Subtle shadow */

}
.menu-btn {
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    background-color: transparent; /* Set the background to transparent */
    border: none; /* Remove the border */
    position: relative; /* Relative to allow alignment via flexbox */
    transform: rotate(0deg);
    transition: .5s ease-in-out;
    z-index: 100;
}
.menu-btn span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--color-blue); /* Change the line color to blue */
    border-radius: 9px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}
.menu-btn span:nth-child(1) {
    top: 0;
}
.menu-btn span:nth-child(2),
.menu-btn span:nth-child(3) {
    top: 12px;
}
.menu-btn span:nth-child(4) {
    top: 24px;
}
.menu-btn.open span:nth-child(1),
.menu-btn.open span:nth-child(4) {
    top: 12px;
    width: 0;
    left: 50%;
}
.menu-btn.open span:nth-child(2) {
    transform: rotate(45deg);
}
.menu-btn.open span:nth-child(3) {
    transform: rotate(-45deg);
}
/* Navigation Content */
.nav-content {
    display: none; /* Hidden by default */
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    position: absolute;
    top: 100%; /* Position it right below the logo-container */
    left: 0;
    width: 100%;
    background-color: var(--header-bg);
    z-index: 50; /* Ensure it overlays on top of the main content */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5); /* Add more pronounced shadow */
}
.nav-content.show {
    display: flex; /* Show when toggled */
}
.nav-items {
    list-style: none;
    width: 100%;
    padding: 0;
}
.nav-items li {
    width: 100%;
    text-align: left;
    font-size: 1.25rem;
    padding: 5px 0;
}
.nav-items li a {
    text-decoration: none;
    color: var(--color-white); /* Changed to white */
}
/*.contact-btn {*/
/*    text-decoration: none;*/
/*    color: var(--color-blue);*/
/*    background-color: var(--color-white); !* Use a contrasting color *!*/
/*    padding: 15px 25px; !* Increase padding *!*/
/*    border-radius: 5px;*/
/*    border: 2px solid var(--color-blue); !* Add a white border *!*/
/*    width: 100%;*/
/*    text-align: center;*/
/*    font-size: 1.5rem;*/
/*    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); !* Add a subtle shadow *!*/
/*    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;*/
/*}*/
/* Hero Section Styles */
.hero, .about, .services, .freshscan, .cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align content to the left */
    text-align: left; /* Align text to the left */
    padding: 40px 0; /* Reduced padding for mobile */
    background-color: var(--color-white); /* Use the white background */
    color: var(--color-black); /* Consistent text color */
    max-width: var(--container-max-width); /* Consistent container width */
    margin: 0 auto; /* Center the section */
}
.hero-content, .about-content {
    max-width: 100%;
    margin-bottom: 40px;
}

 /* Button tap animation */
.btn {
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    width: fit-content;
    text-align: center;
    white-space: nowrap;
}
.btn:active {
  transform: scale(0.95);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
/* Shake animation */
@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-5px); }
  100% { transform: translateX(0); }
}
.contact-button {
    border: 2px solid transparent; /* Add a transparent border by default */
  animation: shake 1s ease-in-out infinite;
}
.contact-button:hover, .contact-button:active {
  animation: none; /* Stop shaking on hover or tap */
}
.hero-buttons {
    display: flex;
    gap: 10px; /* Reduced gap for mobile */
    justify-content: flex-start; /* Align buttons to the left */
}
.btn {
        font-size: 1.2em; /* Adjust button font size for larger screens */
        padding: 15px 30px; /* Adjust padding for larger screens */
    }
.hero-buttons {
        gap: 20px; /* Increase gap for larger screens */
    }
/* Portfolio scroller*/
.portfolio-container {
    width: 100%;
    display: flex;
    gap: 1rem;
}
/* Scroller */
.scroller {
     width: 50%;
    overflow: hidden;
}
.scroller--content {
    display: flex;
    width: 100%;
    gap: var(--item-gap);
}
.scroller--content li img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
    border: 1px solid var(--color-blue);
}
.scroller[data-direction="x"][data-scroll-direction="left-to-right"] .scroller--content {
    flex-direction: row;
    animation: xScrollerLTR var(--animation-speed) linear infinite;
}
.scroller[data-direction="x"][data-scroll-direction="right-to-left"] .scroller--content {
    flex-direction: row-reverse;
    animation: xScrollerRTL var(--animation-speed) linear infinite;
}
.scroller[data-direction="y"][data-scroll-direction="bottom-to-top"] .scroller--content {
    flex-direction: column;
    animation: yScrollerBTT var(--animation-speed) linear infinite;
}
.scroller[data-direction="y"][data-scroll-direction="top-to-bottom"] .scroller--content {
    flex-direction: column-reverse;
    animation: yScrollerTTB var(--animation-speed) linear infinite;
}
.scroller[data-enlarge-on-hover="true"] .scroller--content li:hover img {
    transform: scale(1.2);
    transition: transform 0.3s ease;
}
@keyframes xScrollerLTR {
    to {
        transform: translateX(-50%);
    }
}
@keyframes xScrollerRTL {
    to {
        transform: translateX(50%);
    }
}
@keyframes yScrollerBTT {
    to {
        transform: translateY(-50%);
    }
}
@keyframes yScrollerTTB {
    from {
        transform: translateY(-50%);
    }
}
/* About section */
.about-item-header {
        padding: var(--container-padding);
    position: relative;
}
.about-item-header img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius);
}
.about-item-header h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: var(--color-blue);
    color: var(--color-white);
    padding: 10px;
    margin: 0;
    box-shadow: 0 4px 8px var(--color-black);
    border-radius: var(--border-radius);
    z-index: 10;
}
.about-item-content {
    padding:  20px 10px;
    background-color: var(--color-white);
}
.text-link {
    color: var(--color-blue);
    font-size: 1.5em;
    display: inline-block; /* Ensure the element is treated as a block for transform */
    transition: transform 0.3s ease; /* Add transition for smooth scaling */
    padding: 0px;
    text-decoration: none;
    border-radius: var(--border-radius); /* Use the defined border-radius */
    font-family: var(--font-secondary), serif; /* Use secondary font */
    border: none;
    background-color: transparent;
}

.text-link:hover {
    transform: scale(1.1); /* Scale up the text on hover */
}
.text-link i {
    font-size: 0.75em;
}

/* Keyframe animations */
@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
@keyframes slideInFromLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
.about-item-header img,
.about-item-header h3,
.about-item-content {
    visibility: visible;
    opacity: 0;
}

.scroll-animate-right {
    animation: slideInFromRight 0.5s ease forwards;
}
.scroll-animate-left {
    animation: slideInFromLeft 0.5s ease 0.5s forwards;
}
.scroll-fade-in {
    animation: fadeIn 1s ease 1s forwards;
}
.services .content h2 {
    color: var(--color-secondary);
    margin-bottom: 10px;
    font-family: var(--font-primary), serif;
}
.services .content h1 {
    margin-bottom: 20px;
    color: var(--color-black);
    font-family: var(--font-primary), serif;
}
.services .content p {
    margin-bottom: 20px;
    line-height: 1.5;
    font-family: var(--font-secondary), serif;
    color: var(--color-black);
}
.services .content h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--color-black);
    font-family: var(--font-primary), serif;
}
.services .buttons {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}
.services .image {
    margin-top: 20px;
    text-align: center;
}
.services .image img {
    max-width: 100%;
    height: auto;
}

  /* Services */
.services-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 1.5rem;
}

.services-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.service-item {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.service-item-image img {
    width: 100%;
    height: auto;
}

.service-item-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}
.service-item-content p {
    margin-bottom: 10px;
}
.service-item-content li {
    font-size: 1.8em;
}
/* Desktop styles */
@media (min-width: 768px) {
    .services-header {
        flex-direction: column;
    }

    .service-item {
        flex-direction: row;
    }

    .service-item-image {
        width: 33.33%;
    }

    .service-item-content {
        width: 66.67%;
    }
}
/* contact Section Styles */
.contact {
    padding: 40px var(--container-padding);
    color: var(--color-white);
    text-align: center;
    margin: 20px -20px;
}
.contact-content {
        background-color: var(--color-black);
    padding: 40px var(--container-padding);

    max-width: var(--container-max-width);
    margin: 0 auto;
}
.contact h2 {
    font-size: 2em;
    margin-bottom: 20px;
    font-family: var(--font-primary), serif;
    color: var(--color-white);
}
.contact p {
    font-size: 1.2em;
    margin-bottom: 20px;
    font-family: var(--font-secondary), serif;
    color: var(--color-white);
}
.contact-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}
.contact-form .form-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}
.contact-form input,
.contact-form textarea {
    padding: 15px 20px;
    font-size: 1em;
    width: 100%;
    max-width: 400px;
    border: 2px solid var(--color-gray);
    border-radius: var(--border-radius);
    outline: none; /* Remove default outline */
    transition: border-color 0.2s, box-shadow 0.2s;
}
/* Form field focus effect */
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--color-blue); /* Apply custom border color */
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.6); /* Optional: Adjust shadow color to match var(--color-blue) */
}
.contact-form textarea {
    height: 150px; /* Set a fixed height for the textarea */
    resize: vertical; /* Allow vertical resizing */
}
/* Submit button interaction */
.contact-form button:active {
    transform: scale(0.97);
    background-color: var(--color-blue);
    transition: transform 0.1s, background-color 0.2s;
}
.contact-disclaimer {
    font-size: 1em!important;
    max-width: 75%;
    margin: 1rem auto;
}
.contact-form input,
.contact-form textarea,
.contact-form button {
    font-family: var(--font-primary), serif;
}
#contactForm_forms_flash > div > button {
    display: none!important;
}
/* Blog Section Styles */
.blog-section {
    padding: 40px 0;
    background-color: var(--color-white);
    max-width: var(--container-max-width);
    margin: 0 auto;
    text-align: left;
}
.blog-header h2 {
    color: var(--color-secondary);
    font-family: var(--font-primary), serif;
    margin-bottom: 10px;
}
.blog-header h1 {
    font-family: var(--font-primary), serif;
    color: var(--color-black);
    margin-bottom: 20px;
}
.blog-header p {
    font-family: var(--font-secondary), serif;
    color: var(--color-black);
    margin-bottom: 20px;
}
.blog-carousel {
    display: flex;
    overflow-x: hidden;
    scroll-snap-type: x mandatory;
    gap: 20px;
    margin-top: 2rem;
    padding-bottom: 20px;
}
.blog-item img {
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    object-fit: cover;
    width: 100%;
    height: auto;
    max-height: 400px;
}
.blog-item {
    max-width: calc(100vw - 100px);
    flex: 0 0 auto;
    scroll-snap-align: start;
}
.blog-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}
.blog-meta .tag {
    background-color: var(--color-blue);
    color: var(--color-white);
    padding: 5px 10px;
    border-radius: var(--border-radius);
    font-size: 0.875em;
    font-family: var(--font-secondary), serif;
    box-shadow: 0 2px 4px var(--color-black);
}
.blog-meta .read-time {
    font-size: 0.875em;
    color: var(--color-black);
}
.blog-item h3 {
    font-family: var(--font-primary), serif;
    color: var(--color-black);
    margin-bottom: 10px;
}
.blog-item p {
    font-family: var(--font-secondary), serif;
    color: var(--color-black);
    margin-bottom: 15px;
}
.blog-item .read-more {
    font-size: 1em;
    font-family: var(--font-secondary), serif;
    color: var(--color-blue);
    text-decoration: underline;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.blog-item i{color: var(--color-blue);}
.carousel-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.carousel-navigation .dot {
    background-color: var(--color-gray);
    border-radius: 50%;
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 1rem;
}
.carousel-navigation .dot.active {
    background-color: var(--color-blue);
}
.carousel-navigation .arrows {
    display: flex;
    gap: 10px;
    margin-left: auto;
}
.carousel-navigation .arrow {
    background-color: var(--color-white);
    border: 2px solid var(--color-blue);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5em;
    color: var(--color-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.carousel-navigation .arrow:disabled {
    background-color: var(--color-gray);
    color: var(--color-light-gray);
    cursor: not-allowed;
    border-color: var(--color-gray);
    opacity: 0.5;
}
/* Footer Styles */
footer {
    background-color: var(--color-black);
    color: var(--color-white);
    padding:40px 20px 20px 20px;
    text-align: center;
    font-family: var(--font-secondary), serif;
}
footer .logo img {
    max-height: 150px;
}
footer .footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}
footer .footer-info-container {
    border: 2px solid var(--color-blue);
    padding: 20px;
    width: 100%;
max-width: calc(var(--container-max-width) - 40px);
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}
footer .footer-links {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    width: 100%;
    gap: 15px;
}
footer .footer-links div {
    /*flex: 1;*/
    margin: 10px 20px;
}
footer .footer-links a {
    color: var(--color-white);
    margin: 5px 0;
    display: block;
    font-size: 1rem;
}

footer .social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}
footer .social-icons a {
    color: var(--color-blue);
    font-size: 1.5rem;
}
footer .social-icons a:hover {
    color: var(--color-blue);
}
footer .footer-info {
    display: flex;
    flex-direction: column;
    color: var(--color-white);
    margin-top: 20px;
}
footer .footer-info a {
    color: var(--color-white);
    margin: 5px 0;
}

footer .footer-info p {
    color: var(--color-white);
    margin-bottom: 0.5rem;
}
    footer .footer-terms-info h6 {
        margin-left: 20px;
        color: var(--color-white);
    }
/* Scroll to top */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px;
    font-size: 20px;
    background-color: var(--color-blue);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px var(--color-black);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}
/* Fade in animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-section.show {
    opacity: 1;
    transform: translateY(0);
}
/* Page loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 1;
    transition: opacity 0.5s ease;
}
/* Logo centered */
.loader-logo {
    height: auto;
    opacity: 1;
    border: none;
    box-shadow: none;
}
/* Loading text */
.loader-text {
    margin-top: 20px;
    font-size: 18px;
    color: var(--color-blue);
    font-family: var(--font-primary), serif;
    opacity: 1;
}
/* Fade out the loader */
.loader.hide {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
}
/* Main content initial state */
.main-content.hidden {
    opacity: 0;
    visibility: hidden;
}
/* Fade in main content */
.main-content.visible {
    visibility: visible;
    opacity: 1;
    transition: opacity 1s ease;
}
/* Fullscreen blue overlay for the fade-in effect */
#page-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-blue);
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 1s ease, visibility 1s ease;
}
/* Hide the overlay */
#page-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}
/* Miscellaneous Styles */
.pdf-iframe {
    height: 75vh;
}
/* Cookie */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    transform: translateY(100%);
}
.cookie-popup.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(100%);
}
.cookie-popup-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px 8px 0 0;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.2);
}
.cookie-popup-content h2 {
    margin-top: 0;
}
.cookie-popup-actions {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
/* Toggle Switches */
.cookie-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .slider {
    background-color: var(--color-blue);
}
input:checked + .slider:before {
    transform: translateX(26px);
}
.logo {
    /*order: 1; !* Ensure logo stays left *!*/
}
.menu-btn {
    order: 2; /* Ensure menu button stays right */
}
 .hide-on-mobile {
        display: none;
    }

 /* Privacy Policy & Terms */
.privacy, .terms {
    padding: 40px 0;
}
.privacy .row, .terms .row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.privacy .image, .terms .image {
    flex: 1;
    min-width: 300px; /* Adjust as needed */
}

.privacy .content, .terms .content {
    flex: 2;
    min-width: 300px; /* Adjust as needed */
}

.privacy .pdf-iframe, .terms .pdf-iframe {
    width: 100%;
    height: 600px; /* Adjust as needed */
}
/* General modal styling */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal {
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8); /* Dark background for modal */
    opacity: 0; /* Start with opacity 0 */
    animation: fadeIn 0.5s forwards; /* Apply the fade-in animation */
}

.modal:target {
    display: flex; /* Show the modal when targeted */
        opacity: 1; /* Ensure opacity is set to 1 when displayed */
}

.modal-content {
        position: relative; /* Add relative positioning */
    background-color: #fefefe;
    padding: 20px;
    border: 1px solid #888;
    width: 90%; /* Take up more width on smaller screens */
    height: auto; /* Adjust height for mobile */
    max-height: 95vh; /* Prevent the modal from exceeding screen height */
    overflow-y: auto; /* Enable scrolling for long content */
    border-radius: 10px;
    box-sizing: border-box;
}

/* Close button styling */
.modal .close {
    color: #aaa;
    font-weight: bold;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1001; /* Ensure it's above the content */
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal .close:hover,
.modal .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-row {
            margin: 2rem 0;
}
/* First row: Image on the left and heading on the right */
.modal-row-item {
    display: flex;
    flex-direction: column; /* Stack items in a column */
    align-items: flex-start; /* Align text to the left */
    justify-content: center;
    gap: 20px;
}

.modal-row-item img {
    width: 100%; /* Image full width */
    height: auto;
}

.modal-row-item h3 {
    width: 100%;
    text-align: left; /* Align text to the left */
}

/* Utilities */
.flex-column {
    flex-direction: column;
}

strong {
    font-family: var(--font-primary), serif; /* Use primary font */
}
    .small {
font-size: 1.5rem
    }
/* Desktop Styles */
@media (min-width: 768px) {
    h1 {
        font-size: 3em; /* Base font size for mobile */
    }

    h2 {
        font-size: 2.625em; /* Slightly smaller than h1 */
    }

    h3 {
        font-size: 2.25em; /* Smaller than h2 */
    }

    h4 {
        font-size: 2.5em; /* Smaller than h3 */
    }

    h5 {
        font-size: 1.875em; /* Smaller than h4 */
    }

    h6 {
        font-size: 1.3125em; /* Smallest heading */
        margin-bottom: 10px; /* Slightly smaller margin */
    }

    p {
        font-size: 1.8em; /* Base font size for mobile */
        line-height: 1.4; /* Adjust line height */
        margin-bottom: 30px;
        font-family: var(--font-secondary), serif; /* Use secondary font */
        color: var(--color-black); /* Consistent text color */
    }

    header {
        display: flex;
        justify-content: space-between;
        background-color: var(--color-white);
    }

    body {
        scroll-snap-type: y mandatory; /* Enable vertical scroll snap */
        overflow-y: scroll; /* Enable vertical scrolling */
        height: 100vh; /* Full viewport height */
    }

    section {
        scroll-snap-align: start; /* Snap to the start of each section */
        /*height: 100vh; !* Full viewport height for each section *!*/
    }
.hide-on-desktop {
    display: none;
}
.hide-on-mobile{
    display: block;
}
.btn-invert {
  background-color: var(--color-white); /* Use white background */
    color: var(--color-blue); /* Black text color */
    width: auto!important;
}
    /* Align logo to the left and navigation to the right */
    .logo-container {
        justify-content: flex-start;
        align-items: center;
        padding: 10px 40px;
        width: auto;
    }

    .logo {
        margin-right: auto; /* Align the logo to the left */
    }

    .menu-btn {
        display: none; /* Hide menu button on desktop */
    }

    .nav-content {
        padding: 10px 40px;
        display: flex !important; /* Make nav content visible */
        flex-direction: row; /* Align items horizontally */
        justify-content: flex-end;
        align-items: center;
        width: auto;
        background-color: var(--color-white);
        position: relative;
        box-shadow: none;
    }

    .nav-items {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .nav-items li {
        width: auto; /* Fit the content */
        padding: 0 10px; /* Adjust padding as needed */
        margin: 0; /* Remove any margin */
        text-align: center; /* Center the text */
    }

    .nav-items li a {
        color: var(--color-blue);
        padding: 15px 20px;
        text-decoration: none;
        font-size: 1.5rem;
    }

    .nav-items li a:hover {
        color: var(--color-white);
        background-color: var(--color-blue);
            border-radius: var(--border-radius); /* Use the defined border-radius */
    }



    /*.contact-btn {*/
    /*    width: auto;*/
    /*    text-align: center;*/
    /*    white-space: nowrap;*/
    /*}*/

    /* Hero */
    .hero {
        flex-direction: row;
        align-items: center;
        /*height: 100vh; !* Set height to 100% of the viewport height *!*/
    }

    .hero-content,
    .portfolio-container {
        width: 50%;
    }

    .hero-content {
        order: 1; /* Ensure hero-content is on the left */
    }

    .portfolio-container {
        order: 2; /* Ensure portfolio-container is on the right */
    }

    /* About */
    .about-item-header img,
    .about-item-header h3,
    .about-item-content {
        opacity: 1;
        transform: none;

        animation: none;
        transition: none;
    }
.about-item-header h3 {
    min-height: 200px;
    position: unset;
}
.about-item-content  p{
    min-height: 300px;
}
    .about-items-container {
        display: flex;
        flex-direction: row;
        justify-content: space-between; /* Adjust as needed */
    }

    .about-item {
        flex: 1; /* Each item takes equal space */
        margin: 0 10px; /* Adjust spacing between items */
    }

    /* Footer */
    footer .footer-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
footer .footer-content-container {
        min-width: var(--container-max-width);
}
    footer .footer-info-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin: 20px;
    }

    footer .footer-info-container .logo {
        margin-bottom: 20px; /* Adjust as needed */
    }

    footer .footer-info-container .info-columns {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }

    footer .footer-info-container .info-columns > div {
        flex: 1;
        margin: 0 10px; /* Adjust spacing between columns */
    }

    footer .footer-info {
        text-align: left;
    }

    /* Ensure the footer links are left-aligned */
    footer .footer-links {
        text-align: left;
    }

    footer .footer-links ul {
        display: flex;
        flex-direction: column;
        list-style: none;
        padding: 0;
        align-items: flex-start;
    }

    footer .footer-links ul li {
        margin-right: 20px; /* Adjust spacing between links */
    }

    footer .footer-links ul li a {
        padding: unset;
    }

    footer .footer-info-container .info-columns > div.footer-info {
        flex: 2; /* Make this column twice the size */
    }

    footer .footer-info-container .info-columns > div {
        flex: 1; /* Default size for other columns */
        margin: 0 10px; /* Adjust spacing between columns */
    }

    footer .footer-terms-info {
        display: flex;
        flex-direction: row;
        justify-content: center;
        color: var(--color-white);
        width: 100%;
    }
    /* Desktop modal styles */
        .modal-content {
            width: 75%; /* Take up more width on smaller screens */

    }
    .modal-row-item {
        flex-direction: row; /* Two rows for desktop */
            margin-bottom: 1.5rem;

    }

    .modal-row-item img {
        width: 25%; /* Image column width 1/3 */
        max-width: 25%;
        height: auto;
    }

    .modal-row-item h3 {
        width: 33.33%; /* h3 column width 2/3 */
        align-self: flex-end; /* Align h3 to the bottom */
        margin: 0; /* Remove default margin */
    }

    .modal-row-content {
        display: flex;
        flex-direction: column; /* Content always in column */
        width: 75%;
        margin: auto;
    }
}

.cta-menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: flex-start;
    width:100%;
}

.cta-menu-buttons .btn {
    width: 100% !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease !important;
}

@media (min-width: 768px) {
    .cta-menu-buttons {
        flex-direction: row;
        gap: 20px;
    }

    .cta-menu-buttons .btn {
        width: auto !important;
        box-shadow: none !important;
    }
}


.freshscan .content h2 {
  color: var(--color-secondary);
  margin-bottom: 10px;
  font-family: var(--font-primary), serif;
}
.freshscan .content h1 {
  margin-bottom: 20px;
  color: var(--color-black);
  font-family: var(--font-primary), serif;
}
.freshscan .content p {
  margin-bottom: 20px;
  line-height: 1.5;
  font-family: var(--font-secondary), serif;
  color: var(--color-black);
}
.freshscan .content h3 {
  margin-top: 20px;
  margin-bottom: 10px;
  color: var(--color-black);
  font-family: var(--font-primary), serif;
}
.freshscan .buttons {
  margin-top: 20px;
  display: flex;
  gap: 15px;
}
.freshscan .image {
  margin-top: 20px;
  text-align: center;
}
.freshscan .image img {
  max-width: 100%;
  height: auto;
}

/* Services */
.freshscan-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 1.5rem;
}

.freshscan-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.freshscan-item {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.freshscan-item-image img {
  width: 100%;
  height: auto;
}

.freshscan-item-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.freshscan-item-content p {
  margin-bottom: 10px;
}
.freshscan-item-content li {
  font-size: 1.2em;
}
  .freshscan-item-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-primary), serif;
  color: var(--color-black);
}
/* Desktop styles */
@media (min-width: 768px) {
      .freshscan-item-content h3 {
  margin-top: 4rem;
    margin-bottom: 1rem;

}
    .freshscan-item-content li {
  font-size: 1.8em;
}
   .freshscan-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }

  .freshscan-header-content {
    flex: 1;
    padding-right: 2rem;
  }

  .freshscan-header-image {
    flex: 1;
    max-width: 50%;
    display: flex;
    justify-content: flex-end;
  }

  .freshscan-header-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: var(--border-radius);
    display: block;
  }

}
