:root {
    --ccorange: #EA5E28;
    --ccgrey: #403D39;
    --cclightgrey: #606161;
    --dark: #141313;
    --white: #fff;
    --roboto: "Roboto";
}

/* roboto-regular - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/roboto-v32-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
  /* roboto-500 - latin */
  @font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/roboto-v32-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
  /* roboto-700 - latin */
  @font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/roboto-v32-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
  /* roboto-900 - latin */
  @font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 900;
    src: url('../fonts/roboto-v32-latin-900.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    text-decoration: none;
    list-style-type: none;
}

html {
    scroll-behavior: smooth; /* Ensures the # part of anchors slowly scroll to that section e.g. services section */
}

main {
    flex-wrap: wrap;
    margin-top: 9rem;
}

body {
    display: block;
    margin: 0;
    background-color: black;
    font-family: var(--roboto);
    cursor: url('/assets/images/crosscut_jackhammer-07.png'), auto;
}

a {
    background-color: transparent;
    text-decoration: none;
    cursor: url('/assets/images/crosscut_jackhammer-08.png'), auto;
}

/* nav container */
#header {
    position: fixed;
    display: flex;
    top: 0;
    width: 100%;
    height: 13rem;
    justify-content: center;
    align-items: center;
    z-index: 10;
    transition: height 1s ease, background-color 1s ease;
}

.pages #header {
    background-color: var(--dark);
}

#header.black {
    height: 8rem;
    background-color: var(--dark);
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5rem;
}

.primary-header {
    display: flex;
    align-items: center;
    width: 80%;
    justify-content: space-between;
    z-index: 1;
}

/* Replacement Logo */
.logowrap img {
    width: 30rem;
    height: auto;
    visibility: hidden; 
    animation: showImage 1s forwards; 
    animation-delay: 6.8s;
    transition: transform 1s ease; 
}

.pages .logowrap img {
    animation: none;
    animation-delay: none;
    visibility: visible;
}

.logowrap img.scale-down {
    transform: scale(0.8); 
}

/* Visibility property for logo replacement */
@keyframes showImage {
    0% {
        visibility: hidden;
    }
    100% {
        visibility: visible;
    }
}

/* Nav Anchor */
.primary-navigation {
    display: flex;
    margin: 0;
    padding: 0;
    gap: 2rem;
    justify-content: flex-start;
    pointer-events: none;
    animation: enablePointerEvents 0s forwards;
    animation-delay: 6.8s;
}

.pages .primary-navigation {
    animation: none;
    animation-delay: none;
    pointer-events: auto;
}

.primary-navigation li a {
    color: var(--white);
    font-size: 1.5rem;
    font-family: var(--roboto);
    font-weight: 500;
    opacity: 0;
    animation: fadeIn 2s ease-in forwards;
    animation-delay: 6.8s;
}

.pages .primary-navigation li a {
    animation: none;
    animation-delay: none;
    opacity: 1;
}

.primary-navigation li a:hover {
    color: var(--ccorange);
}

/* Fade In properties for nav */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Enable Pointer Events */
@keyframes enablePointerEvents {
    to {
        pointer-events: auto;
    }
}

/* Tel phone */
.tel button,
.hero button,
.location-item button {
    border: none;
    border-radius: 15px;
    cursor: url('/assets/images/crosscut_jackhammer-08.png'), auto;
    padding: 1rem 2rem;
    background-color: var(--ccorange);
    gap: 0.8rem;
    display: flex;
    opacity: 0;
    box-shadow: 0 10px 20px rgba(96, 97, 97, 0.4);
    transition: 0.5s;
    pointer-events: none;
    animation: fadeIn 2s ease-in forwards, enablePointerEvents 0s forwards;
    animation-delay: 6.8s;
}

.pages .tel button, 
.pages .hero button {
    opacity: 1;
    pointer-events: auto;
    animation: none;
    animation-delay: none;
}

.tel button:hover,
.hero button:hover,
.location-item button:hover {
    background-color: var(--cclightgrey);
    box-shadow: 0 10px 20px rgba(96, 97, 97, 0.8);
}

.tel img,
.hero button img {
    width: 1.8rem;
    height: auto;
    white-space: nowrap;
}

.tel p,
.hero button p {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    margin: 0;
}

/* Dropdown */
.dropdown-container {
    position: absolute;
    background-color: var(--ccorange);
    z-index: 1;
    width: 15rem;
    transform: translate(-25%, calc(1% + 1rem));
    opacity: 0;
    transition: opacity 0.3s ease-out 0.1s;
    pointer-events: none;
}

#about {
    right: 655px;
}

.dropdown:hover .dropdown-container {
    opacity: 1;
    pointer-events: auto;
}

.dropdown-item {
    list-style-type: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.dropdown-item li a {
    text-decoration: none;
    color: var(--white);
    display: block;
    opacity: 1;
    padding: 1rem;
}

.dropdown-item li a:hover {
    background-color: var(--cclightgrey);
}

/* hamburger */
.hamburger-content,
.hamburger-item {
    display: none;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-image: url('/assets/images/crosscut_heroImg.webp');
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat; 
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1;
}

.hero-item {
    width: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    z-index: 2;
    gap: 4rem;
}

.hero h1 {
    position: relative;
    justify-content: start;
    color: var(--white);
    font-family: var(--roboto);
    font-size: 5rem;
    font-weight: 900;
    z-index: 2;
    text-align: left;
    width: 100%;
    opacity: 0;
    animation: fadeIn 2s ease-in forwards;
    animation-delay: 6.8s;
}

.hero button {
    position: relative;
    align-self: flex-start;
    margin-top: auto;
    z-index: 4;
}

/* Main logo */
.logo-gif {
    position: absolute;
    left: 50%;
    transform: translateX(-43%);
    width: auto; 
    height: auto; 
    z-index: 1;
}

.logo-gif .logo {
    transform: scale(1);
    opacity: 1;
}

#animatedLogo {
    transform-origin: top left; 
}

/* Animated Cut Section */
.info-section {
    position: relative;
}

.info-container {
    height: 0;
    width: 100%;
    background-color: #000;
    z-index: 1;
    background-image: url('/assets/images/concrete-bg.webp');
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat; 
    transition: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.info-container::before {
    content: "";
    position: absolute;
    width: 100%;
    height: var(--before-height, 0); 
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2;
    transition: height 1s ease-in-out; 
}

.container-gif {
    position: absolute;
    z-index: 5;
    bottom: 0;
}

.container-gif img {
    width: 100vw;
}

.container-gif.top {
    top: 0;
}

.container-gif.bottom {
    bottom: 0;
}


img#animated-line {
    visibility: hidden; 
    z-index: 2;
    bottom: 0;
    left: 0;
    width: 100%;
}


#static-line {
    position: absolute;
    bottom: 0;
    width: 100%;
    z-index: 4;
    visibility: hidden;
}

.info-card {
    position: relative;
    z-index: 3;
    width: 80%;
    height: 60%; 
    display: flex; 
    align-items: center; 
    justify-content: space-between;
    overflow: hidden; 
}

.info-card img {
    width: 45%; 
    height: auto; 
    object-fit: cover; 
}

.info-card .text-container {
    display: flex;
    flex-direction: column; 
    justify-content: center; 
    width: 50%; 
    padding-left: 20px; 
}

.info-card h1 {
    color: var(--white);
    font-family: var(--roboto);
    font-size: 3rem;
    margin: 0;
    line-height: 1.2; 
}

.info-card h1:first-of-type {
    margin-bottom: 4rem; 
}

/* Services Section */

#services {
    scroll-margin-top: 120px; 
}

.services-container {
    display: flex;
    align-items: center;
    width: 100%;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 0; 
    width: 100%;
    height: 100vh; 
}

.service-item {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    transition: transform 0.7s ease-in-out;
}

.service-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    transition: opacity 1.5s ease;
    z-index: 1;
    
}

.overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    font-size: 5rem;
    font-family: var(--roboto);
    font-weight: 700;
    z-index: 2; 
    text-align: center;
    pointer-events: none; 
    transition: color 0.5s ease-in-out; 
}

/* Change overlay text color on hover */
.service-item:hover .overlay-text {
    color: var(--ccorange); 
    text-shadow: rgba(0, 0, 0, 0.7) 4px 4px 4px;
    
}

.service-item:hover::before {
    opacity: 0; 
}

.service-item:first-child:hover {
    transform: scale(1.25) translate(25%, 25%);
    z-index: 3;
}

.service-item:nth-child(2):hover {
    transform: scale(1.25) translate(0, 25%);
    z-index: 3;
}

.service-item:nth-child(3):hover {
    transform: scale(1.25) translate(-25%, 25%);
    z-index: 3;
}

.service-item:nth-child(4):hover {
    transform: scale(1.25) translate(25%, -25%);
    z-index: 3;
}

.service-item:nth-child(5):hover {
    transform: scale(1.25) translate(0%, -25%);
    z-index: 3;
}

.service-item:nth-child(6):hover {
    transform: scale(1.25) translate(-25%, -25%);
    z-index: 3;
}

/* Services Section End */

/* Location Section */
.location-container {
    height: 100vh;
    width: 100%;
    background-color: var(--dark);
    display: flex;
    justify-content: center;
    align-items: center;
}

.area-service {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between; 
    width: 100%; 
    margin: 0 auto;
}

.map-container {
    height: 50vh;
    width: 50%;
}

.location-item {
    width: 50%; 
    text-align: center; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; 
    height: 100%;
}

.location-item h1{
    color: var(--white);
    font-size: 5rem;
    font-family: var(--roboto);
}

.location-item p {
    color: var(--white);
    font-size: 2rem;
    font-family: var(--roboto);
    margin-bottom: 2rem;
}

.location-item button {
    width: 20rem;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    font-size: 1.5rem;
    font-family: var(--roboto);
    opacity: 1;
    animation: none;
    pointer-events: auto;
}

#location-item:hover .hover-text {
    opacity: 1;
    pointer-events: auto; 
    cursor: url('/assets/images/crosscut_jackhammer-06.png'), auto;
}

.hover-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none; 
    user-select: none;
    background-color: var(--ccorange);
    color: var(--white);
    font-family: var(--roboto);
    border: none;
    border-radius: 15px;
    padding: 1rem 2rem;
    box-shadow: 0 10px 20px rgba(96, 97, 97, 0.4);
    z-index: 9;
    cursor: url('/assets/images/crosscut_jackhammer-06.png'), auto;
    animation: none;
    gap: 0.8rem;
}

.overlay-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
}


/* Cards Section Start */

.center {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    min-height: 50vh;
    background: #232427;
  }

.cards-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    min-height: 90vh;
    margin: 40px 0;
    font-family: var(--roboto);
  }

.cards-container .card {
    position: relative;
    min-width: 320px;
    height: 440px;
    box-shadow: 
      inset 5px 5px 8px rgba(234, 94, 40, 0.2),
      inset -5px -5px 8px rgba(234, 94, 40, 0.15),
      0px 10px 20px rgba(234, 94, 40, 0.3),  
      0px -10px 20px rgba(234, 94, 40, 0.3);  
    border-radius: 15px;
    margin: 30px;
    transition: 0.5s;
  }

.cards-container .card:nth-child(1) .box .content .read-more {
    background: var(--ccorange);
  }

.cards-container .card:nth-child(2) .box .content .read-more {
    background: var(--ccorange);
  }

.cards-container .card:nth-child(3) .box .content .read-more {
    background: var(--ccorange);
  }

.cards-container .card .box {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border-radius: 15px;
    background: #2a2b2f;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: 0.5s;
    z-index: 3;
  }

.cards-container .card .box:hover {
    transform: translateY(-50px);
  }

.cards-container .card .box:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: rgba(255, 255, 255, 0.03);
  }

.cards-container .card .box .content {
    padding: 20px;
    text-align: center;
  }

.cards-container .card .box .content img {
    position: absolute;
    top: -10px;
    left: 130px;
    width: 180px;
    opacity: 0.8;
    z-index: -1;
  }

#choose {
    left: 110px !important;
}

.cards-container .card .box .content h3 {
    font-size: 1.8rem;
    color: #fff;
    z-index: 2;
    transition: 0.5s;
    margin-bottom: 15px;
  }

.cards-container .card .box .content p {
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    z-index: 2;
    transition: 0.5s;
  }

.cards-container .card .box .content .read-more {
    position: relative;
    display: inline-block;
    padding: 8px 20px;
    border-radius: 5px;
    background: black;
    text-decoration: none;
    color: white;
    margin-top: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: 0.5s;
  }

.cards-container .card .box .content .read-more:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6);
    background: #fff;
    color: #000;
  }

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Back of card movement */
.card-link:hover .card {
    transform: scale(1.03);
    transition: transform 0.5s ease;
}

/* Cards Section End */

/* Footer Section Start */

#footerBG {
    background: #141313;
    color: var(--white);
    font-family: var(--roboto);
    padding-top: 30px;
}

#footerBG .container {
    width: auto;
}

.container {
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

.container::before {
    display: table;
    content: " ";
}

#footerBG .row {
    display: flex;
    justify-content: center; /* Align columns closer together */
    text-align: center;
    margin: 0 auto;
    position: relative; /* Make position relative to enable pseudo-elements */
    gap: 10rem; /* Small gap between columns */
}

.row::before {
    display: table;
    content: " ";
}

.column {
    position: relative;
    min-height: 1px;
    padding-left: 0; /* Remove padding to bring columns closer */
    padding-right: 0; /* Remove padding to bring columns closer */
    margin-left: 0; /* Keep margin at 0 */
    margin-right: 0; /* Keep margin at 0 */
}

.footer-line {
    position: absolute;
    right: -50%; /* Adjust this value as needed to center the line */
    top: 10%; /* Adjust top position for consistency */
    bottom: 10%; /* Adjust bottom position for consistency */
    width: 2px; /* Adjust width as needed */
    height: 80%; /* Adjust height to ensure it fits well */
    background-color: var(--ccorange);
    transform: translateX(50%); /* Center it within the gap */
}

/* First Line (Between HOME and ABOUT) */
.column:nth-child(1) .footer-line {
    right: -120%; /* Adjust this value to center the line */
}

/* Second Line (Between ABOUT and SERVICES) */
.column:nth-child(2) .footer-line {
    right: -50%; /* Adjust this value to center the line */
}

/* Third Line (Between SERVICES and CONTACT) */
.column:nth-child(3) .footer-line {
    right: -75%; /* Adjust this value to center the line */
}

h2 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    text-align: left;
}

#footerBG ul {
    list-style-type: none;
    line-height: 1.7;
}

.column ul {
    display: block;
    margin-top: 0;
    margin-bottom: 15px;
    text-align: left;
    font-size: 0.9rem;
}

.column-hover:hover h2,
.column-hover:hover ul li a {
    color: var(--ccorange); 
}

/* Target the About section */
.column:nth-child(2) ul li {
    margin-bottom: 15px; /* Adjust the value to increase/decrease the gap */
}

/* Target the Contact section */
.column:nth-child(4) ul li {
    margin-bottom: 15px; /* Adjust the value to increase/decrease the gap */
}

/* Ensure consistent styling across About and Contact sections */
.column:nth-child(2) ul li:last-child,
.column:nth-child(4) ul li:last-child {
    margin-bottom: 0;
}

#footerBG a {
    color: var(--white);
}

.row::after {
    clear: both;
    display: table;
    content: " ";
}

.container::after {
    clear: both;
    display: table;
    content: " ";
}

#footerBG .footer-social-networks {
    padding-top: 10px;
    padding-bottom: 10px;
}

.footer-social-networks {
    display: flex;
    flex-direction: column; /* Stack icons vertically */
    align-items: center; /* Align icons in the center */
    justify-content: flex-start; /* Align icons to the top */
}

.footer-social-networks a {
    margin: 10px 0; /* Increase margin between icons */
}

.footer-social-networks img {
    width: 30px;
    height: auto;
}

.footer-copyright {
    background-color: var(--ccorange);
    text-align: center;
    overflow-y: hidden;
    height: 60px; /* Set a fixed height */
    display: flex; /* Use flexbox to center content */
    align-items: center; /* Vertically center content */
    justify-content: center; /* Horizontally center content */
}

.ud-logo {
    width: 20vw; /* Smaller percentage of the viewport width */
    max-width: 220px; /* Increase the maximum width */
    min-width: 60px; /* Ensure a minimum size so it doesn't get too small */
    height: auto; /* Maintain aspect ratio */
}

/* Mobile Footer Menu Style */
.mobile-footer {
    display: none;
    background-color: #141313;
    padding: 15px;
    text-align: center;
    border-radius: 15px;
}

.mobile-footer .social-networks {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.mobile-footer .social-networks img {
    width: 30px;
    height: auto;
}

.mobile-footer .mobile-footer-logo {
    display: flex;
    justify-content: center;
    padding-bottom: 30px;
}

.mobile-footer .mobile-footer-logo img {
    width: 250px;
    height: auto;
}

.mobile-footer .social-networks,
.mobile-footer .mobile-footer-logo {
    display: none;
}


/* Footer Section End */

/* Services Pages */

.service-section {
    padding: 2rem;
    background-color: #1a1a1a;
    color: #fff;
}

.service-section .container {
    display: flex;
    height: fit-content;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 0 1.5rem;
    min-height: 80vh;
}

.service-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 80vw;
    /* width: 100%; */
    gap: 2rem;
}

.text-content {
    flex: 1 1 60%;
    padding-right: 1rem;
    order: 1; /* Ensures the text appears on the left */
}

.text-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.text-content p {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.text-content ul {
    list-style: none;
    padding-left: 2rem;
    list-style-type: circle;
}

.text-content ul li {
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 1.2rem;
    list-style-type: disc;
}

.image-content {
    flex: 1 1 35%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 1rem;
    order: 2;
}

.image-content img {
    width: 100%;
    max-width: 400px; /* Set a max-width for smaller screens */
    height: auto;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    margin-right: -80px;
}

/* Services Pages End */

/* Media Queries  */

/* Tablets - Portrait Orientation */

@media  (min-width: 766px) and (max-width: 1366px) {

    .main {
        padding-top:9rem;
    }
    .primary-navigation {
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .hamburger-item {
        display: flex;
        justify-content: center;
        align-items: center;
        visibility: hidden;
        opacity: 0;
        animation: fadeIn 2s ease-in forwards, enablePointerEvents 0s forwards;
        animation-delay: 6.8s;
    }

    .tel-hamburger-wrap {
        display: flex;
        align-items: center;  /* Ensure content is vertically centered */
        justify-content: center; /* Ensure content is horizontally centered */
        white-space: nowrap; /* Prevent line breaks inside the button */
        flex-wrap: nowrap;  /* Prevent the content from wrapping onto another line */
        gap: 3rem;
    }

    .hamburger {
        height: 5vh;
        width: 3.5rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        row-gap: 0.4rem;
    }

    .hamburger span{
        background-color: var(--white);
        max-height: 0.7rem;
        min-height: 0.5rem;
        max-width: 100%;
        min-width: 70%;
        border-radius: 1rem;
    }

    #menuToggle:checked + menu-icon .hamburger span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    #menuToggle:checked + menu-icon .hamburger span:nth-child(2) {
        opacity: 0;
    }

    #menuToggle:checked + menu-icon .hamburger span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hamburger-content {
        display: none;
        flex-direction: column;
        position: absolute;
        margin-top: 300px;
        background-color: var(--ccgrey);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        width: 20%; 
        text-align: center;
        font-family: var(--roboto);
        font-weight: bold;
        transition: top 0.9s ease, background-color 0.9s ease;
    }
    
    .hamburger-content a {
        padding: 15px;
        text-decoration: none;
        color: var(--ccorange);
        display: block;
        font-size: 1rem;
        transition: color 0.9s ease;
    }
    
    .hamburger-content a:last-child {
        border-bottom: none;
    }
    
    #menuToggle:checked ~ .hamburger-content {
        display: flex;
    }

    .hb-item {
        padding: 1rem;
    }

    .w-hb-link {
        color: var(--ccorange);
        text-decoration: none;
        display: flex;
        justify-content: center;
    }

    #menuToggle:checked + .menu-icon + .hamburger-content {
        display: flex; /* Ensure it displays correctly */
        flex-direction: column;
    }

    #header {
        height: 9rem;
    }

    .logowrap img {
        width: 19.5rem;
    }

    .logowrap img.scale-down {
        transform: scale(0.95); 
    }

    .logo-gif {
        position: absolute;
        left: 50%;
        transform: translateX(-22%);
        width: 1800px; 
        height: auto; 
        z-index: 1;
    }

    .logo-gif img {
        width: 50%; /* Set a fixed width */
        height: auto;
    }

    .hero h1 {
        font-size: 7rem;
    }

    /* Keeps info elements inside the container */
    .info-container {
        height: 0;
        overflow: hidden;
        transition: height 1s ease-in-out;
    }

    .info-card {
        flex-direction: column;
        height: auto; 
        align-items: flex-start;
    }

    .info-card img {
        width: 100%; 
        height: auto; 
    }

    .info-card .text-container {
        width: 100%;
        padding-left: 0;
        padding-top: 30px; 
        text-align: center; 
        align-items: center; 
    }

    .services-grid {
        display: grid;
        grid-template-columns: 1fr; /* Change to a single column */
        grid-template-rows: repeat(6, 1fr); /* Adjust rows to match the number of items */
        width: 100%;
        height: auto; /* Adjust height to auto since it's now in a column */
    }

    .hover-text {
        opacity: 1; /* Make it fully visible */
        pointer-events: auto; /* Ensure it can be interacted with */
    }

    .cards-container .card {
        min-width: 380px; /* Increase the minimum width */
        height: 500px; /* Increase the height */
        margin: 40px; /* Optionally adjust margin for better spacing */
        transition: 0.5s;
    }

    .cards-container .card .box {
        top: 30px; /* Adjust top position to keep inner box aligned */
        left: 30px; /* Adjust left position */
        right: 30px; /* Adjust right position */
        bottom: 30px; /* Adjust bottom position */
    }

    .cards-container .card .box .content {
        padding: 30px; /* Increase padding for better content spacing */
    }

    .cards-container .card .box .content h3 {
        font-size: 2rem; /* Increase the font size of the heading */
    }

    .cards-container .card .box .content p {
        font-size: 1.25rem; /* Increase the font size of the paragraph */
    }

    .cards-container .card .box .content .read-more {
        padding: 10px 25px; /* Increase padding for the button */
        font-size: 1.1rem; /* Optionally increase the font size */
    }

    .cards-container .card .box .content img {
        top: -20px; /* Adjust the position of the image if necessary */
        left: 150px; /* Adjust the left position */
        width: 200px; /* Increase the size of the image */
    }

    #footerBG .row {
        display: flex;
        justify-content: center; /* Align columns closer together */
        text-align: center;
        margin: 0 auto;
        position: relative; /* Make position relative to enable pseudo-elements */
        gap: 6rem; /* Small gap between columns */
    }

    .column {
        position: relative;
        min-height: 1px;
        padding-left: 0; /* Remove padding to bring columns closer */
        padding-right: 0; /* Remove padding to bring columns closer */
        margin-left: 0; /* Keep margin at 0 */
        margin-right: 0; /* Keep margin at 0 */
    }

    /* Increase font size for headings and list items */
    .column h2 {
        font-size: 1.5rem; /* Increase font size for headings */
    }

    .column ul li {
        font-size: 1.1rem; /* Increase font size for list items */
    }

    .footer-line {
        position: absolute;
        right: -50%; /* Adjust this value as needed to center the line */
        top: 10%; /* Adjust top position for consistency */
        bottom: 10%; /* Adjust bottom position for consistency */
        width: 2px; /* Adjust width as needed */
        height: 80%; /* Adjust height to ensure it fits well */
        background-color: var(--ccorange);
        transform: translateX(50%); /* Center it within the gap */
    }
    
    /* First Line (Between HOME and ABOUT) */
    .column:nth-child(1) .footer-line {
        right: -80%; /* Adjust this value to center the line */
    }
    
    /* Second Line (Between ABOUT and SERVICES) */
    .column:nth-child(2) .footer-line {
        right: -30%; /* Adjust this value to center the line */
    }
    
    /* Third Line (Between SERVICES and CONTACT) */
    .column:nth-child(3) .footer-line {
        right: -50%; /* Adjust this value to center the line */
    }

    .footer-social-networks {
        flex-direction: column; /* Stack icons vertically */
        align-items: center; /* Center icons */
        justify-content: flex-start; /* Align icons to the top */
    }

    .footer-social-networks a {
        margin: 10px 0; /* Increase margin between icons */
    }

    .footer-copyright {
        height: 50px; /* Reduce the height slightly for better spacing */
        padding: 0 15px; /* Add padding to ensure content doesn’t touch edges */
        font-size: 0.9rem; /* Reduce font size slightly for tablet view */
    }

    .ud-logo {
        width: 26vw; /* Slightly reduce viewport width percentage */
        max-width: 300px; /* Adjust max-width */
        min-width: 50px; /* Adjust minimum width */
    }

    .service-section {
        padding: 4rem 0; /* Adjust the padding for a smaller screen */
    }

    .service-section .container {
        flex-direction: row; /* Keep the layout side by side */
        min-height: 75vh; /* Let height adjust based on content */
        gap: 1.5rem; /* Adjust gap between elements */
    }

    .service-content {
        flex-direction: row; /* Ensure the image and text remain side by side */
        max-width: 100%; /* Ensure it doesn't exceed the screen width */
        gap: 1.5rem; /* Adjust the space between text and image */
    }

    .image-content {
        flex: 1 1 40%; /* Adjust image width to take 40% of the container */
        padding-left: 0.5rem; /* Reduce padding on the left for better centering */
    }

    .image-content img {
        max-width: 100%; /* Ensure the image scales responsively */
        height: auto; /* Maintain aspect ratio */
        margin-right: 0; /* Reset margin for better alignment */
    }

    .text-content {
        flex: 1 1 55%; /* Adjust text width to 55% of the container */
        padding-right: 0.5rem; /* Adjust padding for smaller screens */
    }

    .text-content h1 {
        font-size: 2.2rem; /* Slightly smaller headings for tablets */
        margin-bottom: 1rem;
    }

    .text-content p {
        font-size: 1.3rem; /* Adjust text size for better readability */
    }

    .text-content ul li {
        font-size: 1.2rem; /* Slightly reduce the bullet point text size */
        line-height: 1.5; /* Keep the line height comfortable for readability */
        margin-bottom: 0.8rem; /* Adjust spacing between list items */
    }
    

}

/* Phones and Small Tablets (iPhone 14 Pro Mainly) */
@media (min-width: 320px) and (max-width: 765px) {

    main {
        margin-top: 7rem;
     }
    
    .primary-navigation {
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .hamburger-item {
        display: flex;
        justify-content: center;
        align-items: center;
        visibility: hidden;
        opacity: 0;
        animation: fadeIn 1.5s ease-in forwards, enablePointerEvents 0s forwards;
        animation-delay: 3.4s; /* Reduced delay for faster appearance */
    }

    .tel-hamburger-wrap {
        display: flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        flex-wrap: nowrap;
        gap: 1.5rem; /* Reduced gap for smaller screens */
    }

    .tel button {
        padding: 0.5rem; /* Adjust padding to center the image */
        font-size: 0; /* Hide text by reducing font-size */
        border-radius: 10px; /* Make the button circular */
        width: auto; /* Allow button width to adjust to the content */
    }

    .tel button img {
        width: 20px; /* Adjust the size of the phone icon */
        height: auto;
    }

    .tel button p {
        display: none; /* Hide the phone number text */
    }

    .hamburger {
        height: 4vh; /* Slightly smaller height */
        width: 2.5rem; /* Reduced width */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        row-gap: 0.3rem; /* Reduced gap between lines */
    }

    .hamburger span {
        background-color: var(--white);
        max-height: 0.5rem; /* Adjusted height */
        min-height: 0.3rem; /* Adjusted height */
        max-width: 90%; /* Reduced max-width */
        min-width: 60%; /* Reduced min-width */
        border-radius: 0.8rem; /* Slightly smaller radius */
    }

    #menuToggle:checked + menu-icon .hamburger span:nth-child(1) {
        transform: translateY(6px) rotate(45deg); /* Adjusted for smaller span height */
    }

    #menuToggle:checked + menu-icon .hamburger span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg); /* Adjusted for smaller span height */
    }

    .hamburger-content {
        display: none;
        flex-direction: column;
        position: absolute;
        margin-top: 220px; /* Adjusted for smaller screens */
        background-color: var(--ccgrey);
        box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
        width: 30%; /* Increased width for better visibility */
        text-align: center;
        font-family: var(--roboto);
        font-weight: bold;
        transition: top 0.7s ease, background-color 0.7s ease;
    }

    .hamburger-content a {
        padding: 10px; /* Reduced padding */
        font-size: 0.9rem; /* Reduced font size */
        transition: color 0.7s ease;
    }

    #menuToggle:checked ~ .hamburger-content {
        display: flex;
    }

    .hb-item {
        padding: 0.5rem; /* Reduced padding */
    }

    .w-hb-link {
        color: var(--ccorange);
        text-decoration: none;
        display: flex;
        justify-content: center;
    }

    #header {
        height: 7rem; /* Reduced height */
    }

    .logowrap img {
        width: 14rem; /* Reduced width */
    }

    .logowrap img.scale-down {
        transform: scale(0.85); /* Further scale down */
    }

    .logo-gif {
        position: absolute;
        left: 50%;
        transform: translateX(-17%);
        width: 1000px; /* Reduced width */
        height: auto; 
        z-index: 1;
    }

    .logo-gif img {
        width: 40%; /* Reduced width */
        height: auto;
    }

    .hero h1 {
        font-size: 3.5rem; /* Reduced font size */
    }

    .info-container {
        height: 0;
        overflow: hidden;
        transition: height 0.8s ease-in-out;
    }

    .info-card {
        flex-direction: column;
        height: auto; 
        align-items: flex-start;
    }

    .info-card img {
        width: 100%; 
        height: auto; 
    }

    .info-card .text-container {
        width: 100%;
        padding-left: 0;
        padding-top: 20px; /* Reduced padding */
        text-align: center; 
        align-items: center; 
    }

    .info-card .text-container h1 {
        font-size: 2rem;
    }

    .services-grid {
        display: grid;
        grid-template-columns: 1fr; 
        grid-template-rows: repeat(6, 1fr); 
        width: 100%;
        height: auto;
    }

    .overlay-text {
        font-size: 4rem;
    }

    .hover-text {
        opacity: 1;
        pointer-events: auto;
    }

    .location-container {
        height: 100vh; /* Adjust height for stacking */
        padding: 20px 0; /* Add padding for better spacing */
    }

    .area-service {
        flex-direction: column; /* Stack the sections vertically */
    }

    .location-item {
        width: 100%; /* Full width for the stacked layout */
        margin-bottom: 20px; /* Space between the sections */
    }

    .location-item h1{
        font-size: 3rem;
    }

    .location-item p {
        font-size: 1.5rem;
    }

    .map-container {
        width: 90%;
        height: 50vh; /* Adjust height to maintain visibility */
    }

    .cards-container .card {
        min-width: 300px; /* Further reduced min-width */
        height: 400px; /* Reduced height */
        margin: 30px; /* Adjusted margin */
        transition: 0.5s;
    }

    .cards-container .card .box {
        top: 20px; /* Adjusted top position */
        left: 20px; /* Adjusted left position */
        right: 20px; /* Adjusted right position */
        bottom: 20px; /* Adjusted bottom position */
    }

    .cards-container .card .box .content {
        padding: 20px; /* Reduced padding */
    }

    .cards-container .card .box .content h3 {
        font-size: 1.8rem; /* Reduced font size */
    }

    .cards-container .card .box .content p {
        font-size: 1rem; /* Reduced font size */
    }

    .cards-container .card .box .content .read-more {
        padding: 8px 20px; /* Reduced padding */
        font-size: 1rem; /* Adjusted font size */
    }

    .cards-container .card .box .content img {
        top: -10px; /* Adjusted top position */
        left: 120px; /* Adjusted left position */
        width: 150px; /* Reduced width */
    }

    .mobile-footer {
        display: block; /* Show dropdown on mobile devices */
    }

    .mobile-footer .social-networks,
    .mobile-footer .mobile-footer-logo {
        display: flex; /* Show both dropdown and social networks */
    }

    #footerBG .container {
        display: none; /* Hide the original footer content on mobile */
    }

    #footerBG {
        padding-top: 0px;
    }

    .footer-copyright {
        height: 50px; /* Reduced height */
        padding: 0 15px; /* Reduced padding */
        font-size: 0.8rem; /* Reduced font size */
    }

    .ud-logo {
        width: 40vw; /* Reduced width */
        max-width: 800px; /* Reduced max-width */
        min-width: 40px; /* Reduced min-width */
    }

    .service-section .container {
        height: auto; /* Allow height to adjust based on content */
        padding-top: 2rem;
    }

    .service-content {
        flex-direction: column; /* Stack items vertically */
        align-items: center;
    }

    .image-content {
        order: 1; /* Ensure image appears first */
        padding-left: 0; /* Remove any extra padding for smaller screens */
        margin-right: 0; /* Remove the margin-right from the image */
    }

    .image-content img {
        max-width: 100%;
        margin-right: 0;
    }

    .text-content {
        order: 2; /* Ensure text content appears second */
        padding-right: 0; /* Remove padding on smaller screens */
        text-align: center; /* Optional: Center-align text for better readability on small screens */
    }

    .text-content h1 {
        font-size: 2rem; /* Adjust the font size for smaller screens */
    }

    .text-content p, .text-content ul li {
        font-size: 1rem; /* Adjust text size for better readability */
    }

    .text-content ul li {
        margin-bottom: 0.5rem; /* Reduce space between bullet points */
        line-height: 1.4; /* Adjust line height for closer spacing between lines */
    }

    .text-content ul {
        padding-left: 1rem; /* Adjust the left padding to bring text closer to bullets */
    }


}

@media (min-width: 768px) {
    .image-content img {
        max-width: 500px; /* Increase size for tablets */
    }
}

@media (min-width: 1920px) {

    main {
       margin-top: 200px;
    }

    .image-content img {
        max-width: 12000px; /* Increase size for larger desktops */
    }

    .text-content h1 {
        font-size: 60px;
    }

    .text-content p {
        font-size: 25px;
    }

    .text-content ul li {
        font-size: 25px;
    }
}
