/*
Theme Name: TMS MEP WordPress Theme
Theme URI: https://tms-mep.co.uk
Description: A professional WordPress Full Site Editing theme for TMS MEP Consultants. Features dark design, responsive layout, and comprehensive editing capabilities for MEP consulting businesses.
Author: TMS MEP Development Team
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tms-mep-theme
Tags: full-site-editing, block-themes, consulting, engineering, responsive, dark-theme
*/

/*
 * Font Loading
 */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200;300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');

/*
 * Global Reset and Base Styles
 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Oswald', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #121212;
    color: #e0e0e0;
    line-height: 1.6;
    overflow-x: hidden;
}

.wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/*
 * Header Styles
 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.header.transparent {
    background-color: transparent;
}

.header.scrolled {
    background-color: rgba(0, 0, 0, 0.8);
}

.book-consultant {
    display: block;
    padding: 10px 15px;
    background-color: #075bb6;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-family: oswald, sans-serif;
}

.book-consultant:hover {
    background-color: #5c9ee6;
    color: white !important;
}

.hamburger {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1100;
    position: relative;
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.hamburger i {
    font-size: 34px;
    transition: all 0.3s ease;
    color: rgb(211, 207, 207);
}

.header.scrolled .hamburger i {
    color: white;
}

/*
 * Full Page Menu Styles
 */
.full-page-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #121212, #1e1e1e);
    z-index: 1000;
    display: flex;
    transition: right 1s cubic-bezier(0.77, 0, 0.175, 1);
    overflow: hidden;
}

.full-page-menu.active {
    right: 0;
}

.menu-content {
    width: 60%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(225deg, #1a1a1a, #0f0f0f);
    font-family: oswald, sans-serif;
}

.menu-navigation {
    width: 40%;
    background: linear-gradient(225deg, #0f0f0f, #1a1a1a);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 0 50px;
}

.wp-block-navigation ul {
    list-style: none;
    text-align: center;
    width: 100%;
}

.wp-block-navigation li {
    margin: 40px 0;
}

.wp-block-navigation a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    font-family: oswald, sans-serif;
    text-transform: uppercase;
}

/*
 * Video Section
 */
.video-section {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.video-container {
    width: 100%;
}

.desktop-video,
.mobile-video {
    width: 100%;
    height: auto;
    display: block;
}

.mobile-video {
    display: none;
}

@media (max-width: 768px) {
    .desktop-video {
        display: none;
    }

    .mobile-video {
        display: block;
    }
}

/*
 * Statistics Section
 */
.achievements-container {
    max-width: 1200px;
    margin: 0 auto;
}

.stat-section {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 60px;
    margin-top: 40px;
}

.stat-item {
    flex: 1;
    min-width: 200px;
    padding: 20px;
    text-align: center;
}

.stat-count {
    font-family: 'Dancing Script', cursive;
    font-size: 5rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
}

.stat-label {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #a0a0a0;
}

.carbon-footprint .stat-count {
    color: #34C759;
}

.carbon-footprint .stat-label {
    color: #34C759;
}

/*
 * Service Cards
 */
.mep-service-card {
    background: #121212;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .3s ease, box-shadow .3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    height: 100%;
}

.mep-service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(7, 91, 182, 0.2);
}

/*
 * Portfolio/Topic Navigation
 */
.topic-navigation {
    position: relative;
    border-radius: 12px;
    margin-bottom: 30px;
    overflow: hidden;
    background-color: #fff;
}

.selected-topic {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.selected-topic h3 {
    font-weight: 600;
    color: #2563eb;
    margin: 0;
}

.dropdown-icon {
    width: 24px;
    height: 24px;
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

.dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.3s ease;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.topic-button {
    background-color: #f3f4f6;
    color: #374151;
    border: none;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.topic-button:hover {
    background-color: #c2c3c5;
    color: black;
    transform: translateY(-2px);
}

.topic-button.active {
    background-color: #2563eb;
    color: white;
}

/*
 * Portfolio Cards
 */
.image-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.topic-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    aspect-ratio: 4/3;
    opacity: 0;
    display: none;
    transition: opacity 0.5s ease;
}

.topic-card.visible {
    opacity: 1;
    display: block;
}

.topic-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.topic-info {
    position: absolute;
    bottom: -100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    transition: bottom 0.5s ease;
}

.topic-card:hover .topic-image {
    transform: scale(1.1);
}

.topic-card:hover .topic-info {
    bottom: 0;
}

.topic-info h3 {
    margin: 0 0 10px 0;
    color: white;
    font-size: 18px;
}

.topic-info p {
    margin: 0;
    color: #bfc1c5;
    font-size: 14px;
    line-height: 1.5;
}

/*
 * Team Section
 */
.new-team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.new-team-member {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 1 / 1.3;
}

.new-team-member img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.new-team-member__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
    padding: 30px 15px 20px;
    text-align: center;
    transform: translateY(20px);
    opacity: 0;
    transition: all .4s ease;
}

.new-team-member:hover img {
    transform: scale(1.08);
}

.new-team-member:hover .new-team-member__overlay {
    transform: translateY(0);
    opacity: 1;
}

.new-team-member__name {
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 5px;
}

.new-team-member__role {
    font-size: 14px;
    font-weight: 300;
    color: #cccccc;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/*
 * Contact Form Styles
 */
.tms-contact-wrapper {
    display: flex;
    max-width: 1400px;
    margin: auto;
    background-color: #121212;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.tms-contact-info {
    flex: 0 0 40%;
    background-color: #1A1A1A;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tms-contact-form {
    flex: 0 0 60%;
    padding: 3rem 2.5rem;
    background-color: #121212;
}

.tms-form-group {
    position: relative;
    margin-bottom: 2rem;
}

.tms-form-input {
    width: 100%;
    padding: 0.9rem 1.2rem;
    background-color: #1A1A1A;
    border: 2px solid #333;
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 1rem;
    transition: all .3s ease;
}

.tms-form-input:focus {
    outline: none;
    border-color: #075bb6;
    box-shadow: 0 0 0 3px rgba(7, 91, 182, 0.2);
}

.tms-submit-button {
    width: 100%;
    padding: 1.1rem;
    background-color: #075bb6;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .3s ease;
}

.tms-submit-button:hover {
    background-color: #054a8a;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(7, 91, 182, 0.3);
}

/*
 * Newsletter Form
 */
.ew-newsletter-wrap form {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.ew-newsletter-subbox {
    flex: 1;
    padding: 12px 16px;
    background: #1a1a1a;
    border: 2px solid #333;
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 14px;
}

.ew-newsletter-subbox:focus {
    outline: none;
    border-color: #075bb6;
}

#subbutton {
    padding: 12px 20px;
    background: #075bb6;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .3s;
}

#subbutton:hover {
    background: #054a8a;
}

/*
 * Responsive Design
 */
@media (max-width: 1200px) {
    .topics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .image-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .new-team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .tms-contact-wrapper {
        flex-direction: column;
    }

    .stat-section {
        flex-direction: column;
        gap: 2rem;
    }

    .stat-count {
        font-size: 3rem;
    }

    .full-page-menu {
        flex-direction: column;
    }

    .menu-content {
        display: none;
    }

    .menu-navigation {
        width: 100%;
        height: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .topics-grid {
        grid-template-columns: 1fr;
    }

    .image-container {
        grid-template-columns: 1fr;
    }

    .new-team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .selected-topic {
        display: flex;
        background-color: #fff;
    }

    .dropdown-menu.open {
        max-height: 500px;
        padding: 15px;
        border-top: 1px solid #eaeaea;
    }

    .book-consultant {
        display: none;
    }

    .header {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .new-team-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .new-team-member__overlay {
        padding: 20px 10px;
        opacity: 1;
        transform: none;
        background: rgba(0, 0, 0, 0.7);
    }

    .new-team-member img {
        transform: none !important;
    }

    .new-team-member:hover img {
        transform: none;
    }

    .image-container {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        width: 100%;
        max-width: 480px;
        gap: 10px;
        padding: 0 0 20px 0;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        position: relative;
    }

    .image-container::-webkit-scrollbar {
        display: none;
    }

    .topic-card {
        flex: 0 0 100%;
        max-width: 432px;
        height: 320px;
        position: relative;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
        overflow: hidden;
        scroll-snap-align: center;
        transition: transform 0.3s ease;
    }

    .topic-info {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.6));
        color: #fff;
        padding: 15px;
        box-sizing: border-box;
        transition: background 0.3s ease;
    }

    .topic-info h3 {
        font-size: 14px;
        margin: 0;
        font-weight: 700;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    }

    .topic-info p {
        display: flex;
        margin-top: 8px;
        font-size: 12px;
    }
}

/*
 * WordPress Block Editor Styles
 */
.wp-block-group {
    margin: 0;
}

.wp-block-columns {
    margin-bottom: 0;
}

.wp-block-column {
    margin-bottom: 0;
}

.wp-block-button__link {
    text-decoration: none;
}

.wp-block-navigation a {
    text-decoration: none;
}

.wp-block-social-links a {
    text-decoration: none;
}

/*
 * Logo Slider Styles
 */
.logo-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 15px;
    padding: 40px 10px;
}

.logo-track {
    display: flex;
    width: calc(250px * 16);
    animation: scroll 30s linear infinite;
}

.logo-track:hover {
    animation-play-state: paused;
}

.logo-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 250px;
    height: 120px;
    padding: 10px;
    box-sizing: border-box;
}

.logo-item-inner {
    width: 180px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.logo-item img {
    max-width: 200px;
    max-height: 120px;
    object-fit: contain;
    transition: all 0.4s ease;
}

.logo-item:hover img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

.logo-item:hover .logo-item-inner {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/*
 * Utility Classes
 */
.text-center {
    text-align: center;
}

.mt-0 {
    margin-top: 0 !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.p-0 {
    padding: 0 !important;
}

/*
 * Print Styles
 */
@media print {

    .header,
    .full-page-menu,
    .hamburger,
    .book-consultant {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .wp-block-group {
        background: white !important;
        color: black !important;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Oswald', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #121212;
    color: #e0e0e0;
    line-height: 1.6;
    overflow-x: hidden;
}

.wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
       HERO / STATS SECTION
       ======================================== */
#achievements-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    text-align: center;
}

.achievements-container {
    max-width: 1200px;
    margin: 0 auto;
}

.stat-section {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 60px;
    margin-top: 40px;
}

.stat-item {
    flex: 1;
    min-width: 200px;
    padding: 20px;
}

.stat-count {
    font-size: 48px;
    font-weight: 700;
    color: #4CAF50;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
}

.stat-label {
    font-size: 16px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #cccccc;
}

.carbon-footprint .stat-count {
    color: #ff5252;
}

@media (max-width:768px) {
    .stat-section {
        gap: 40px;
    }

    .stat-count {
        font-size: 36px;
    }

    .stat-label {
        font-size: 14px;
    }
}

@media (max-width:480px) {
    .stat-section {
        flex-direction: column;
        gap: 30px;
    }

    .stat-count {
        font-size: 32px;
    }
}

/* ========================================
       GLOBAL SECTION STYLES
       ======================================== */
.section {
    padding: 80px 0;
}

.section-subtitle {
    font-size: 18px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #4CAF50;
    margin-bottom: 10px;
    text-align: center;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #fff;
    margin: 0 0 60px;
    text-align: center;
}

/* ========================================
       FEATURED CONTENT SECTION
       ======================================== */
#featured-content-section .section-title {
    margin-bottom: 60px;
}

.mep-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    align-items: stretch;
}

.hentry {
    display: flex;
    flex-direction: column;
}

.hentry-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.custom-image,
.wp-post-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    margin-bottom: 30px;
    display: block;
    transition: transform .3s ease;
}

.wp-post-image:hover {
    transform: scale(1.03);
}

.entry-container {
    flex: 1;
    padding: 0 10px;
}

.entry-header {
    margin-bottom: 20px;
}

.entry-title {
    font-size: 24px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    line-height: 1.2;
}

.entry-title a {
    color: #fff;
    text-decoration: none;
    transition: color .3s;
}

.entry-title a:hover {
    color: #4CAF50;
}

.section-tagline-1 {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.8;
    color: #cccccc;
    margin: 0 0 15px 0;
}

/* ========================================
       OUR SERVICES SECTION
       ======================================== */
#service-section {
    background: #1a1a1a;
}

#service-section .section-title {
    margin-bottom: 50px;
}

.mep-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.mep-service-card {
    background: #121212;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .3s ease, box-shadow .3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.mep-service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(7, 91, 182, 0.2);
}

.mep-service-image {
    height: 220px;
    overflow: hidden;
}

.mep-service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.mep-service-card:hover .mep-service-image img {
    transform: scale(1.08);
}

.mep-service-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mep-service-title {
    font-size: 22px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #fff;
    margin-bottom: 15px;
}

.mep-service-description {
    font-size: 15px;
    font-weight: 300;
    line-height: 1.8;
    color: #cccccc;
    margin-bottom: 15px;
    flex: 1;
}

.mep-service-cta {
    display: inline-block;
    margin-top: auto;
    padding: 10px 20px;
    background: #075bb6;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    align-self: flex-start;
    transition: all .3s ease;
}

.mep-service-cta:hover {
    background: #054a8a;
    transform: translateY(-2px);
}

/* ========================================
       TEAM SECTION
       ======================================== */
#team-content-section .section-title {
    margin-bottom: 60px;
}

.new-team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.new-team-member {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 1 / 1.3;
}

.new-team-member img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.new-team-member__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
    padding: 30px 15px 20px;
    text-align: center;
    transform: translateY(20px);
    opacity: 0;
    transition: all .4s ease;
}

.new-team-member:hover img {
    transform: scale(1.08);
}

.new-team-member:hover .new-team-member__overlay {
    transform: translateY(0);
    opacity: 1;
}

.new-team-member__name {
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 5px;
}

.new-team-member__role {
    font-size: 14px;
    font-weight: 300;
    color: #cccccc;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
       CONTACT SECTION
       ======================================== */
.tms-contact-wrapper {
    display: flex;
    max-width: 1400px;
    margin: auto;
    background-color: #121212;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.tms-contact-info {
    flex: 0 0 40%;
    background-color: #1A1A1A;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tms-map-container {
    width: 100%;
    height: 350px;
    margin-top: 10px;
    background-color: #2A2A2A;
    border-radius: 12px;
    margin-bottom: 2rem;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.tms-map-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tms-contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
    margin-top: 1rem;
}

.tms-contact-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-top: 1rem;
}

.tms-contact-item i {
    color: white;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    background-color: #075bb6;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform .3s, box-shadow .3s;
}

.tms-contact-item i:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(7, 91, 182, 0.3);
}

.tms-contact-item a {
    color: #e0e0e0;
    text-decoration: none;
}

.tms-social-icons {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.tms-social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #075bb6;
    border: 2px solid #075bb6;
    color: #fff;
    border-radius: 50%;
    font-size: 1.5rem;
    transition: all .3s ease;
}

.tms-social-icons a:hover {
    background-color: transparent;
    color: #075bb6;
    transform: translateY(-3px);
}

.tms-contact-form {
    flex: 0 0 60%;
    padding: 3rem 2.5rem;
    background-color: #121212;
}

.tms-form-group {
    position: relative;
    margin-bottom: 2rem;
}

.tms-form-label {
    display: block;
    margin-bottom: 0.7rem;
    color: #B0B0B0;
    font-weight: 500;
    font-size: 0.95rem;
}

.tms-form-input {
    width: 100%;
    padding: 0.9rem 1.2rem;
    background-color: #1A1A1A;
    border: 2px solid #333;
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 1rem;
    transition: all .3s ease;
}

.tms-form-input:focus {
    outline: none;
    border-color: #075bb6;
    box-shadow: 0 0 0 3px rgba(7, 91, 182, 0.2);
}

.tms-phone-wrapper {
    display: flex;
    gap: 0.5rem;
}

.tms-country-select {
    flex: 0 0 120px;
    padding: 0.9rem 0.6rem;
    background-color: #1A1A1A;
    border: 2px solid #333;
    border-radius: 8px;
    color: #e0e0e0;
}

.tms-file-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: #1A1A1A;
    border: 2px dashed #333;
    border-radius: 8px;
    padding: 1rem;
    transition: all .3s ease;
}

.tms-file-input {
    display: none;
}

.tms-file-trigger {
    display: flex;
    align-items: center;
    background-color: #075bb6;
    color: white;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color .3s;
}

.tms-file-trigger:hover {
    background-color: #054a8a;
}

.tms-file-trigger i {
    margin-right: 0.5rem;
}

.tms-file-name {
    color: #B0B0B0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.tms-submit-button {
    width: 100%;
    padding: 1.1rem;
    background-color: #075bb6;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .3s ease;
}

.tms-submit-button:hover {
    background-color: #054a8a;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(7, 91, 182, 0.3);
}

/* Radio Buttons */
.tms-form-group label {
    display: inline-block;
    margin-right: 1.5rem;
    font-size: 0.95rem;
}

.tms-form-group input[type="radio"] {
    margin-right: 0.5rem;
}

/* Notification */
.tms-notification {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.tms-notification.success {
    background-color: #1a3d1a;
    color: #90ee90;
    border: 1px solid #2e7d32;
}

/* ========================================
       FOOTER
       ======================================== */
.site-footer {
    background-color: #0a0a0a;
    color: #b0b0b0;
    font-size: 14px;
    padding: 60px 0 20px;
}

.footer-widget-area {
    margin-bottom: 50px;
}

.footer-widget-area .wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
}

.widget-column {
    flex: 1 1 280px;
    min-width: 250px;
}

.widget-title {
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #fff;
    margin-bottom: 20px;
}

.textwidget p {
    font-size: 15px;
    line-height: 1.8;
    color: #cccccc;
}

.article-wrap .entry-title {
    font-size: 16px;
    margin: 12px 0;
}

.article-wrap .entry-title a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color .3s;
}

.article-wrap .entry-title a:hover {
    color: #4CAF50;
}

/* Newsletter */
.ew-newsletter-wrap form {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.ew-newsletter-subbox {
    flex: 1;
    padding: 12px 16px;
    background: #1a1a1a;
    border: 2px solid #333;
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 14px;
}

.ew-newsletter-subbox:focus {
    outline: none;
    border-color: #075bb6;
}

#subbutton {
    padding: 12px 20px;
    background: #075bb6;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .3s;
}

#subbutton:hover {
    background: #054a8a;
}

/* Site Generator */
.stat-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    transition: background-color 0.3s ease;
    gap: 1.5rem;
}

.stat-item {
    flex: 1;
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.stat-item.carbon-footprint {
    color: #34C759;
}

.stat-item.carbon-footprint .stat-count {
    color: #34C759;
}

.stat-item.carbon-footprint .stat-label {
    color: #34C759;
}

.stat-count {
    font-family: 'Dancing Script', cursive;
    font-size: 5rem;
    font-weight: 900;
    color: #ffffff;
    text-align: center;
}

.stat-label {
    text-transform: uppercase;
    font-family: oswald, sans-serif;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: #a0a0a0;
    font-size: 1.5rem;
    font-family: 'Oswald', sans-serif;
    text-align: center;
}

@media (max-width: 1024px) {
    .stat-section {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        gap: 2rem;
    }

    .stat-item {
        text-align: center;
        padding: 1rem;
    }

    .stat-count {
        font-size: 3rem;
    }

    .stat-label {
        font-size: 1.2rem;
        letter-spacing: 1.2px;
    }
}

/* ========================================
       RESPONSIVE
       ======================================== */
@media (max-width:1200px) {
    .mep-services-grid {
        gap: 30px;
    }

    .section-title {
        font-size: 42px;
    }

    .custom-image,
    .wp-post-image {
        height: 230px;
    }
}

@media (max-width:1024px) {
    .tms-contact-wrapper {
        flex-direction: column;
    }

    .tms-contact-info,
    .tms-contact-form {
        flex: 1 1 100%;
    }

    .tms-phone-wrapper {
        flex-direction: column;
    }

    .tms-country-select {
        width: 100%;
    }
}

@media (max-width:992px) {
    .mep-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .new-team-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }

    .footer-widget-area .wrapper {
        gap: 30px;
    }
}

@media (max-width:768px) {
    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 32px;
        margin-bottom: 40px;
    }

    .mep-services-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .new-team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .custom-image,
    .wp-post-image {
        height: 200px;
    }

    .tms-contact-info,
    .tms-contact-form {
        padding: 2rem 1.5rem;
    }

    .footer-widget-area .wrapper {
        flex-direction: column;
    }

    .mep-service-image {
        height: 180px;
    }
}

@media (max-width:480px) {
    .section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 28px;
    }

    .new-team-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .new-team-member__overlay {
        padding: 20px 10px;
        opacity: 1;
        transform: none;
        background: rgba(0, 0, 0, 0.7);
    }

    .new-team-member img {
        transform: none !important;
    }

    .new-team-member:hover img {
        transform: none;
    }

    .custom-image,
    .wp-post-image {
        height: 180px;
    }

    .ew-newsletter-wrap form {
        flex-direction: column;
    }

    #subbutton {
        width: 100%;
    }
}

/* Overlay effects */
.logo-container::before,
.logo-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.logo-container::before {
    left: 0;
}

.logo-container::after {
    right: 0;
    transform: rotate(180deg);
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 2s ease;
}

#logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    position: relative;
    animation: pulse 2s infinite;
}

#logo {
    max-width: 120%;
    max-height: 120%;
    object-fit: contain;
    opacity: 0;
    transform: scale(0.3);
    transition: all 1.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
}

#logo.show {
    opacity: 1;
    transform: scale(1.5);
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 1));
}

#main-content {
    display: none;
    opacity: 0;
    transition: opacity 2s ease;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

.construction-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.topic-navigation {
    position: relative;
    border-radius: 12px;
    margin-bottom: 30px;
    overflow: hidden;
    background-color: #fff;
    /* Default, overridden by media queries */
}

/* Hide topics grid by default */
.topics-grid {
    display: none;
}

/* Selected topic display */
.selected-topic {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.selected-topic:hover {
    background-color: #f9f9f9;
}

.selected-topic h3 {
    font-weight: 600;
    color: #2563eb;
    margin: 0;
}

.dropdown-icon {
    width: 24px;
    height: 24px;
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

.dropdown-icon.open {
    transform: rotate(180deg);
}

/* Dropdown menu */
.dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.3s ease;
}

.dropdown-menu.open {
    max-height: 500px;
    /* Adjust as needed */
    padding: 15px;
    border-top: 1px solid #eaeaea;
}

/* Topics grid */
.topics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

@media (max-width: 768px) {
    .topic-navigation {
        background-color: #fff;
        box-shadowvies: 0 8px 30px rgba(0, 0, 0, 0.12);
    }

    .selected-topic {
        display: flex;
        background-color: #fff;
    }

    .dropdown-menu {
        background-color: #fff;
    }

    .dropdown-menu.open {
        max-height: 500px;
        padding: 15px;
        border-top: 1px solid #eaeaea;
        background-color: #fff;
    }

    .topics-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .dropdown-menu.open .topics-grid {
        display: grid;
    }
}

/* Big screens (>768px) */
@media (min-width: 769px) {
    .topic-navigation {
        background-color: transparent;
        box-shadow: none;
        padding: 20px 0;
        /* Add some vertical spacing */
    }

    .selected-topic {
        display: none;
    }

    .dropdown-menu {
        max-height: none;
        padding: 0;
        border-top: none;
        background-color: transparent;
    }

    .topics-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        max-width: 1000px;
        margin: 0 auto;
        justify-items: center;
        padding: 20px;
    }

    .dropdown-icon {
        display: none;
    }

    .topic-button {
        padding: 15px 20px;
        background-color: #ffffff;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
        border-radius: 10px;
        min-width: 250px;
        text-align: center;
        transition: all 0.3s ease;
    }

    .topic-button:hover {
        background-color: #c03232;
        transform: translateY(-4px);
        box-shadow: 0 6px 20px rgba(37, 99, 235, 0.15);
    }

    .topic-button::before {
        width: 6px;
    }

    .topic-button.active {
        background-color: #2563eb;
        color: white;
        box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
    }

    .topic-button.active:hover {
        background-color: #1d4ed8;
        transform: translateY(-4px);
    }
}

@media (min-width: 1400px) {
    .topic-navigation {
        background-color: transparent;
        box-shadow: none;
        padding: 20px 0;
    }

    .selected-topic {
        display: none;
    }

    .dropdown-menu {
        max-height: none;
        padding: 0;
        border-top: none;
        background-color: transparent;
    }

    .topics-grid {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 20px;
        max-width: 1400px;
        margin: 0 auto;
        justify-items: center;
    }

    .dropdown-icon {
        display: none;
    }

    .topic-button {
        padding: 15px 20px;
        background-color: #ffffff;
        /* White background for contrast */
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
        /* Subtle shadow */
        border-radius: 10px;
        min-width: 250px;
        /* Consistent width */
        text-align: center;
        /* Center text */
        transition: all 0.3s ease;
    }

    .topic-button:hover {
        background-color: #f9f9f9;
        transform: translateY(-4px);
        /* More pronounced lift */
        box-shadow: 0 6px 20px rgba(37, 99, 235, 0.15);
    }

    .topic-button::before {
        width: 6px;
        /* Slightly wider accent bar */
    }

    .topic-button.active {
        background-color: #2563eb;
        color: white;
        box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
    }

    .topic-button.active:hover {
        background-color: #1d4ed8;
        /* Slightly darker on hover */
        transform: translateY(-4px);
    }
}

/* Topic button styling */
.topic-button {
    background-color: #f3f4f6;
    color: #374151;
    border: none;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.topic-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: #2563eb;
    transform: scaleY(0);
    transition: transform 0.3s ease;
    transform-origin: bottom;
}

.topic-button:hover {
    background-color: #c2c3c5;
    color: black;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.topic-button:hover::before {
    transform: scaleY(1);
}

.topic-button.active {
    background-color: #2563eb;
    color: white;
}

.topic-button.active::before {
    transform: scaleY(1);
    background-color: #1e40af;
}

/* Image container and cards */
.image-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.topic-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: none;
    /* Hide all cards by default */
}

.topic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.topic-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.topic-info {
    padding: 15px;
}

.topic-info h3 {
    margin: 0 0 10px 0;
    color: white;
    font-size: 18px;
}

.topic-info p {
    margin: 0;
    color: #bfc1c5;
    font-size: 14px;
    line-height: 1.5;
}

.image-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.topic-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    aspect-ratio: 4/3;
    opacity: 0;
    display: none;
    transition: opacity 0.5s ease;
}

.topic-card.visible {
    opacity: 1;
    display: block;
}

.topic-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.topic-info {
    position: absolute;
    bottom: -100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    transition: bottom 0.5s ease;
}

.topic-card:hover .topic-image {
    transform: scale(1.1);
}

.topic-card:hover .topic-info {
    bottom: 0;
}

@media (max-width: 1024px) {
    .image-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .image-container {
        grid-template-columns: 1fr;
    }

    .topic-button {
        width: 100%;
    }

    .topic-info {
        position: absolute;
        bottom: 0;
        background: rgba(0, 0, 0, 0.8);
        padding: 10px 20px;
    }

    .topic-info h3 {
        font-size: 16px;
        margin: 0;
    }

    /* .topic-info p {
                    display: none; 
                    margin-top: 8px;
                    font-size: 12px;
                } */

    .topic-card:hover .topic-image {
        transform: none;
    }

    .topic-card:hover .topic-info {
        bottom: 0;
    }

    .topic-card:hover .topic-info p {
        display: flex;
        /* Show on hover */
    }
}

@media (max-width: 480px) {
    .image-container {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        width: 100%;
        max-width: 480px;
        gap: 10px;
        padding: 0 0 20px 0;
        /* Space for dots */
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        /* Hide scrollbar for cleaner look */
        position: relative;
        /* For dots positioning */
    }

    .image-container::-webkit-scrollbar {
        display: none;
    }

    .topic-card {
        flex: 0 0 100%;
        max-width: 432px;
        height: 320px;
        position: relative;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
        overflow: hidden;
        scroll-snap-align: center;
        transition: transform 0.3s ease;
    }

    .topic-card:active {
        transform: scale(0.98);
    }

    .topic-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-top-left-radius: 12px;
        border-top-right-radius: 12px;
    }

    .topic-info {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.6));
        /* Gradient overlay */
        color: #fff;
        padding: 15px;
        box-sizing: border-box;
        transition: background 0.3s ease;
    }

    .topic-info h3 {
        font-size: 14px;
        margin: 0;
        font-weight: 700;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    }

    .topic-info p {
        display: flex;
        margin-top: 8px;
        font-size: 12px;
    }

    .pagination {
        position: absolute;
        bottom: 5px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 8px;
    }

    .pagination-dot {
        width: 8px;
        height: 8px;
        background: #bbb;
        border-radius: 50%;
        cursor: pointer;
        transition: background 0.3s ease, transform 0.3s ease;
    }

    .pagination-dot.active {
        background: #fff;
        transform: scale(1.2);
    }

    .topic-card:hover .topic-image {
        transform: none;
    }

    .topic-card:hover .topic-info {
        bottom: 0;
    }
}

@media (min-width: 481px) {
    .image-container {
        overflow-x: hidden;
    }

    .pagination {
        display: none;
    }
}

.logo-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 15px;
    padding: 40px 10px;
}

.logo-track {
    display: flex;
    width: calc(250px * 16);
    animation: scroll 30s linear infinite;
}

.logo-track:hover {
    animation-play-state: paused;
}

.logo-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 250px;
    height: 120px;
    padding: 10px;
    box-sizing: border-box;
}

.logo-item-inner {
    width: 180px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.logo-item img {
    max-width: 200px;
    max-height: 120px;
    object-fit: contain;
    transition: all 0.4s ease;
}

.logo-item:hover img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

.logo-item:hover .logo-item-inner {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Overlay effects */
.logo-container::before,
.logo-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.logo-container::before {
    left: 0;
}

.logo-container::after {
    right: 0;
    transform: rotate(180deg);
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 2s ease;
}

#logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    position: relative;
    animation: pulse 2s infinite;
}

#logo {
    max-width: 120%;
    max-height: 120%;
    object-fit: contain;
    opacity: 0;
    transform: scale(0.3);
    transition: all 1.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
}

#logo.show {
    opacity: 1;
    transform: scale(1.5);
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 1));
}

#main-content {
    display: none;
    opacity: 0;
    transition: opacity 2s ease;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

.video-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.video-hero__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.video-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.video-hero__content {
    position: relative;
    z-index: 3;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
    padding: 20px;
}

.video-hero__title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.video-hero__subtitle {
    font-size: 1.5rem;
    max-width: 800px;
}

.video-section {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.video-container {
    width: 100%;
}

.desktop-video,
.mobile-video {
    width: 100%;
    height: auto;
    display: block;
}

/* Hide mobile video on desktop */
.mobile-video {
    display: none;
}

/* Media query for mobile devices */
@media (max-width: 768px) {

    /* Hide desktop video on mobile */
    .desktop-video {
        display: none;
    }

    /* Show mobile video on mobile */
    .mobile-video {
        display: block;
    }
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.header.transparent {
    background-color: transparent;
}

.back-to-home {
    display: none;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    transition: all 0.3s ease;
}

.back-to-home i {
    font-size: 20px;
}

.back-to-home:hover {
    background-color: rgba(230, 230, 230, 1);
    transform: scale(1.1);
}


.back-to-home {
    display: none;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    transition: all 0.3s ease;
}

.back-to-home i {
    font-size: 20px;
}

.back-to-home:hover {
    background-color: rgba(230, 230, 230, 1);
    transform: scale(1.1);
}

.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.logo img {
    max-height: 150px;
}

.book-consultant {
    display: block;
    padding: 10px 15px;
    background-color: #075bb6;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-family: oswald, sans-serif;
}

.book-consultant:hover {
    background-color: #5c9ee6;
    color: white !important;
}


.hamburger {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1100;
    position: relative;
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.hamburger i {
    font-size: 34px;
    transition: all 0.3s ease;
    color: rgb(211, 207, 207);
}

.header.scrolled .hamburger i {
    color: white;
}

.hamburger.active {
    transform: rotate(180deg);
}

.hamburger.active i::before {
    content: '\f00d';
    color: #cfdbe9;
}

.header.scrolled {
    background-color: rgba(0, 0, 0, 0.8);
}

.full-page-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #121212, #1e1e1e);
    z-index: 1000;
    display: flex;
    transition: right 1s cubic-bezier(0.77, 0, 0.175, 1);
    overflow: hidden;
}

.full-page-menu.active {
    right: 0;
}

.menu-content {
    width: 60%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(225deg, #1a1a1a, #0f0f0f);
    font-family: oswald, sans-serif;
}

.top-section {
    flex: 2;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease-in-out;
    cursor: pointer;
}

.top-section:hover {
    transform: scale(1.02);
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.6);
}

.top-image {
    width: 100%;
    height: 100%;
    background-image: url('/wp-content/uploads/2025/11/virtualrealty.png');
    background-size: cover;
    background-position: center;
    filter: brightness(0.7) contrast(1.1);
    transition: all 0.6s ease-in-out;
}

.top-section:hover .top-image {
    transform: scale(1.1);
    filter: brightness(0.8) contrast(1.2);
}

.top-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 70%);
    display: flex;
    align-items: flex-end;
    padding: 30px;
    opacity: 1;
    transition: all 0.4s ease-in-out;
}

.top-overlay .overlay-content {
    opacity: 1;
    transform: translateY(0);
    color: #ffffff;
}

.overlay-content h2 {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 15px;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    font-family: oswald, sans-serif;
}

.overlay-content p {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 600px;
    opacity: 0.9;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-family: oswald, sans-serif;
}

.bottom-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    flex: 1;
}

.bottom-section {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    transition: all 0.4s ease-in-out;
    cursor: pointer;
}

.bottom-section:hover {
    transform: scale(1.05);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

.bottom-image {
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: brightness(0.6) contrast(1.1);
    transition: all 0.6s ease-in-out;
}

.bottom-section:hover .bottom-image {
    transform: scale(1.1);
    filter: brightness(0.7) contrast(1.2);
}

.bottom-left-image {
    background-image: url('/wp-content/uploads/2025/11/Carbon-Neutral-1.jpg');
}

.bottom-right-image {
    background-image: url('/wp-content/uploads/2025/11/AI-Andy-MEP-Expert.png');
    height: 300px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.bottom-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 70%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 1;
}

.bottom-overlay .overlay-content {
    opacity: 1;
    transform: translateY(0);
    color: #ffffff;
}

.overlay-content h3 {
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-transform: uppercase;
    text-shadow: 0 3px 5px rgba(0, 0, 0, 0.4);
}

.overlay-content p {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.9;
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.3);
}

.menu-navigation {
    width: 40%;
    background: linear-gradient(225deg, #0f0f0f, #1a1a1a);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 0 50px;
}

.branding-section {
    position: absolute;
    top: 30px;
    right: 50%;
    transform: translateX(50%);
    opacity: 1;
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.branding-section img {
    max-width: 250px;
    filter: brightness(1.2) contrast(1.1) drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.nav-menu {
    list-style: none;
    text-align: center;
    width: 100%;
    perspective: 1000px;
}

.nav-menu li {
    margin: 40px 0;
    opacity: 0;
    transform: translateY(50px) rotateX(90deg);
    transition: all 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.full-page-menu.active .nav-menu li {
    opacity: 1;
    transform: translateY(0) rotateX(0);
}

.nav-menu li a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    overflow: hidden;
    font-family: oswald, sans-serif;
}

.nav-menu li a::after {
    content: attr(data-text);
    position: absolute;
    top: 100%;
    left: 0;
    color: rgba(255, 255, 255, 0.3);
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-menu li a:hover::after {
    transform: translateY(-100%);
}

.social-links {
    position: absolute;
    bottom: 30px;
    display: flex;
    gap: 30px;
}

.social-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    transition: all 0.4s ease;
    position: relative;
    display: inline-block;
}

.social-links a::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #4a90e2;
    transition: width 0.3s ease;
}

.social-links a:hover {
    color: #ffffff;
    transform: translateY(-10px);
}

.social-links a:hover::before {
    width: 100%;
}

@media screen and (max-width: 1024px) {
    .full-page-menu {
        flex-direction: column;
    }

    .menu-content {
        display: none;
        /* Completely hide the left side content on mobile */
    }

    .menu-navigation {
        width: 100%;
        height: 100%;
        background: linear-gradient(225deg, #1e1e1e, #121212);
        justify-content: center;
    }

    .branding-section {
        position: absolute;
        top: 15%;
        left: 44%;
        transform: translate(-25%, -25%);
        margin: 0;
        z-index: 10;
    }

    .branding-section img {
        max-width: 300px;
    }

    .menu-navigation {
        justify-content: center;
        position: relative;
        padding-top: 100px;
    }

    .nav-menu {
        margin-top: 30px;
    }

    .nav-menu li {
        margin: 30px 0;
    }

    .nav-menu li a {
        font-size: 2rem;
    }

    .social-links {
        position: static;
        display: flex;
        justify-content: center;
        margin-top: 50px;
        width: 100%;
    }
}

/* Mobile Specific Adjustments */
@media screen and (max-width: 768px) {
    .branding-section img {
        max-width: 200px;
    }

    .nav-menu li a {
        font-size: 1.6rem;
    }

    .social-links a {
        font-size: 1.2rem;
    }
}

/* Stagger animation for menu items */
.nav-menu li:nth-child(1) {
    transition-delay: 0.2s;
}

.nav-menu li:nth-child(2) {
    transition-delay: 0.3s;
}

.nav-menu li:nth-child(3) {
    transition-delay: 0.4s;
}

.nav-menu li:nth-child(4) {
    transition-delay: 0.5s;
}

@media (max-width: 468px) {
    .book-consultant {
        display: none;
    }
}

.team-skills-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}

.team-members-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.team-member {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    height: 400px;
}

.team-member:hover {
    transform: scale(1.05);
}

.team-member__image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center;
}

.team-member:hover {
    transform: scale(1.05);
}

.team-member__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s ease;
}

.team-member:hover .team-member__image {
    filter: brightness(70%);
}

.team-member__overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 20px;
    text-align: center;
    transition: bottom 0.3s ease;
}

.team-member:hover .team-member__overlay {
    bottom: 0;
}

.team-member__name {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 5px;
    font-family: oswald, sans-serif;
}

.team-member__role {
    font-size: 1rem;
    color: #ddd;
    font-family: oswald, sans-serif;
}

.team-member--large {
    width: 100%;
    max-width: 600px;
    height: 400px;
}

.team-members-row {
    display: flex;
    gap: 20px;
    width: 100%;
    max-width: 600px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.team-members-row .team-member {
    flex: 1;
    height: 350px;
}

/* Media query for mobile screens */
@media (max-width: 768px) {
    .team-members-row {
        flex-direction: column;
        gap: 20px;
    }

    .team-members-row .team-member {
        width: 100%;
    }
}