@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Poppins:wght@300;400;500;600&display=swap');

:root {
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
    --color-bg: #FFFFFF;
    --color-text-main: #222222;
    --color-text-light: #555555;
    --color-accent: #000000;
    --transition-speed: 0.6s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text-main);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    min-height: 100vh;
    position: relative;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 60px;
    width: 200px;
    height: 100vh;
    z-index: 90;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: opacity 0.8s ease, transform 0.8s ease;
    padding-top: 15vh;
}

.sidebar.hidden-on-scroll {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

.site-header {
    position: absolute;
    top: 30px;
    left: 50px;
    z-index: 1000;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 110px;
    background-color: transparent;
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    width: 100%;
}

.site-header.hidden-on-scroll {
    opacity: 0;
    transform: translateY(-100%);
    pointer-events: none;
}



.logo-container {
    margin-bottom: 0;
}

.company-logo {
    width: 220px;
    height: auto;
    display: block;
}

.branding-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 0;
}

.company-name {
    font-family: 'Poppins', sans-serif;
    font-size: 2.6rem;
    font-weight: 500;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 5px;
    line-height: 1;
    margin-bottom: 8px;
}

.company-bio {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: #bbbbbb;
    text-transform: uppercase;
    letter-spacing: 3px;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.company-bio span.red-pipe {
    color: #ff0000;
    font-weight: bold;
    font-size: 1rem;
    display: inline-block;
    margin: 0 5px;
}

.nav-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nav-item {
    margin-bottom: 0;
}

.nav-link {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: #bbbbbb;
    text-transform: capitalize;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    position: relative;
    width: fit-content;
}

.nav-link:hover,
.nav-link.active {
    opacity: 1;
    color: #9ABF80;
    font-weight: 500;
    transform: none;
}

.nav-link::after {
    display: none;
}

.nav-link::after {
    display: none;
}

.main-content {
    margin-left: 320px;
    padding: 180px 60px 60px 60px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: calc(100% - 320px);
}

.page-section {
    margin-bottom: 100px;
}

.page-section p {
    text-align: justify;
}

.section-heading {
    font-family: 'Calibri', sans-serif;
    font-weight: 400;
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: #556B2F;
}

.hero-image-container {
    width: 95%;
    margin-right: auto;
    margin-left: 0;
    height: auto;
    overflow: hidden;
    position: relative;
    margin-bottom: 30px;
    background-color: transparent;
}

.hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 6s ease;
    opacity: 1 !important;
}

.hero-image-container::before,
.hero-image-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 51%;
    height: 100%;
    background: #ffffff;
    z-index: 100;
    animation: splitReveal 1.5s cubic-bezier(0.77, 0, 0.175, 1) forwards;
    animation-delay: 0.2s;
}

.hero-image-container::before {
    left: 0;
    transform-origin: left;
}

.hero-image-container::after {
    right: 0;
    transform-origin: right;
}

@keyframes splitReveal {
    0% {
        transform: scaleX(1);
    }

    100% {
        transform: scaleX(0);
    }
}

.hero-text {
    text-align: left;
    font-family: 'Calibri Light', sans-serif;
    font-size: 1.6rem;
    font-style: normal;
    color: #444444;
    margin-top: 10px;
    letter-spacing: 0.5px;
    white-space: nowrap;
    /* Force single line */
}

.footer {
    position: relative;
    width: calc(100% + 320px);
    margin-left: -320px;
    height: 350px;
    margin-top: auto;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    color: #333333;
    border-top: 1px solid #eaeaea;
    z-index: 100;
}

#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.6;
}

.footer-content {
    position: relative;
    z-index: 2;
    width: 85%;
    max-width: 1400px;
    height: 70%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0;
}

body.sub-page-mode .footer-content,
.footer-content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 30px !important;
}

.footer-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
    height: 100%;
}

.footer-right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: right;
    height: 100%;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-icon {
    font-size: 1.2rem;
    color: #333;
    transition: color 0.3s;
}

.social-icon:hover {
    color: #9ABF80;
}

.footer-contact p {
    font-size: 1rem;
    margin-bottom: 5px;
    color: #555;
    font-family: 'Poppins', sans-serif;
}

.footer-logos {
    display: flex;
    gap: 30px;
    align-items: center;
}

.footer-logo-img {
    height: 45px;
    width: auto;
    opacity: 1;
    transition: all 0.3s;
}

.footer-logo-img:hover {
    filter: none;
    opacity: 1;
}

.copyright-info p {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 5px;
    font-family: 'Poppins', sans-serif;
}

.privacy-link a {
    font-size: 0.85rem;
    color: #888;
    text-decoration: underline;
    font-family: 'Poppins', sans-serif;
}

@media (max-width:1024px) {
    .container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        padding: 40px 20px;
        text-align: center;
        align-items: center;
    }

    .branding {
        margin-bottom: 30px;
    }

    .card-image-wrapper {
        width: 100%;
        aspect-ratio: 16 / 9;
        overflow: hidden;
        margin-bottom: 15px;
        border-radius: 4px;
        background: #f0f0f0;
    }

    .logo-container {
        justify-content: center;
    }

    .sidebar nav {
        margin-bottom: 30px;
    }

    .main-content {
        margin-left: 0;
        padding: 0 20px 40px 20px;
    }

    .nav-menu {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .footer {
        margin-left: 0;
        width: 100%;
        position: relative;
        transition: transform 0.5s ease, opacity 0.5s ease;
    }

    body.sub-page-mode .footer {
        position: relative !important;
        width: calc(100% + 320px) !important;
        margin-left: -320px !important;
        bottom: auto !important;
        left: auto !important;
        z-index: 100 !important;
        background-color: #ffffff;
        box-shadow: none !important;
        border-top: 1px solid #eaeaea;
    }

    body.sub-page-mode .footer-content,
    .footer-content {
        width: 96% !important;
        max-width: 100% !important;
        padding: 0 40px !important;
    }

    .footer.hidden-on-scroll {
        transform: translateY(100%);
        opacity: 1;
    }

    body.sub-page-mode .main-content {
        padding-bottom: 0px;
    }

    .main-header {
        margin-bottom: 40px;
    }

    .company-name-main {
        font-family: 'Poppins', sans-serif;
        font-size: 1.8rem;
        font-weight: 500;
        letter-spacing: 5px;
        text-transform: uppercase;
        color: #888;
        margin-bottom: 10px;
    }

    .company-bio-main {
        font-family: 'Poppins', sans-serif;
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 2px;
        color: #aaa;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .company-bio-main span {
        color: #cc0000;
        font-weight: bold;
    }

    .sidebar .company-logo {
        width: 80px;
        margin-bottom: 40px;
    }
}

.directors-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    justify-items: center;
}

.team-member {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 200px;
    margin: 0 auto;
}

.team-member:hover {
    transform: none;
}

.team-member img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0;
    margin-bottom: 12px;
    filter: none;
}

.team-member h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: #333;
    font-family: 'Calibri', 'Arial', sans-serif;
}

.team-member p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.3;
    font-family: 'Calibri', 'Arial', sans-serif;
}

@media (max-width:768px) {
    .staff-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width:500px) {
    .staff-grid {
        grid-template-columns: 1fr;
    }
}

.contact-pptx-container {
    max-width: 800px;
    margin: 40px 0 100px 0;
    padding: 0 20px;
    background-color: #ffffff;
    text-align: left;
}

@media (max-width:1024px) {
    .contact-pptx-container {
        margin: 40px auto 60px;
    }
}

.contact-pptx-container h2 {
    font-family: 'Calibri', 'Arial', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 35px;
    margin-bottom: 60px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.form-row.full-width {
    grid-template-columns: 1fr;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.short-input {
    max-width: 120px;
}

.form-group label {
    font-family: 'Calibri', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 8px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 10px 0;
    border: none;
    border-bottom: 2px solid #9ABF80;
    background: transparent;
    font-family: 'Calibri', sans-serif;
    font-size: 1.05rem;
    color: #333;
    border-radius: 0;
    outline: none;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-bottom-color: #556B2F;
}

.contact-form textarea {
    min-height: 80px;
    resize: none;
}

.recaptcha-placeholder {
    margin: 10px 0 40px;
}

.recaptcha-box {
    border: 1px solid #e0e0e0;
    background: #fafafa;
    padding: 8px 15px;
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 15px;
    border-radius: 4px;
}

.recaptcha-box input[type="checkbox"] {
    width: 24px !important;
    height: 24px !important;
    margin: 0;
    border: 2px solid #c1c1c1;
    border-radius: 2px;
    cursor: pointer;
    background: #fff;
    padding: 0;
}

.recaptcha-box label {
    white-space: nowrap;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: #000;
}

.submit-btn {
    background-color: #dcdcdc;
    color: #556B2F;
    border: 1px solid #ccc;
    padding: 15px 0;
    width: 100%;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Calibri', sans-serif;
    transition: all 0.3s ease;
    text-transform: capitalize;
}

.submit-btn:hover {
    background-color: #9ABF80;
    color: #ffffff !important;
    border-color: #9ABF80;
}

.company-details {
    margin-top: 50px;
    font-family: 'Calibri', sans-serif;
    color: #555;
    border-top: 1px solid #eee;
    padding-top: 40px;
}

.company-details h3 {
    font-size: 1.5rem;
    color: #444;
    margin-bottom: 20px;
    font-weight: 700;
}

.pptx-address p,
.pptx-contacts p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 5px;
}

.pptx-address {
    margin-bottom: 30px;
}

.pptx-contacts a {
    color: #C71585;
    text-decoration: none;
}

.pptx-map-wrapper {
    margin-top: 40px;
    width: 100%;
    height: 350px;
    background: #f0f0f0;
    border: 1px solid #ddd;
}

.pptx-map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: none !important;
}

@media (max-width:768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .submit-btn {
        width: 100%;
    }
}

.all-projects-carousel {
    width: 100%;
    overflow-x: auto;
    position: relative;
    background: #fff;
    padding: 30px 0;
    display: none;
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-behavior: smooth;
    cursor: grab;
}

.carousel-main-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

body:has(.all-projects-carousel:not(.active)) .carousel-main-wrapper {
    overflow: visible !important;
    height: auto !important;
}

.all-projects-carousel {
    display: flex;
    overflow-x: auto;
    scroll-behavior: auto;
    gap: 20px;
    padding: 20px 0;
    cursor: grab;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: static;
}

.all-projects-carousel.active-drag {
    cursor: grabbing;
    scroll-behavior: auto;
    user-select: none;
}

.all-projects-carousel:not(.active) {
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: visible;
    transform: none !important;
    height: auto !important;
    padding-bottom: 50px;
}

.all-projects-carousel:not(.active) .carousel-item {
    flex: 0 0 48% !important;
    max-width: 48% !important;
    width: auto !important;
    height: auto !important;
    margin-bottom: 30px;
    opacity: 1 !important;
    position: relative !important;
    display: block !important;
    background: transparent !important;
    box-shadow: none !important;
}

.all-projects-carousel:not(.active) .carousel-item img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 10px;
}

body:has(.all-projects-carousel:not(.active)) .carousel-btn {
    display: none !important;
}

.all-projects-carousel::-webkit-scrollbar {
    display: none;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #8CC63F;
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.carousel-btn:hover {
    background: #7ab332;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    opacity: 1;
}

.prev-btn {
    left: 0px;
}

.next-btn {
    right: 0px;
}

.all-projects-carousel::after {
    display: none;
}

.all-projects-carousel.active {
    display: block;
}

.carousel-track {
    display: flex;
    width: max-content;
    gap: 20px;
    padding: 0 40px;
}

.carousel-item {
    width: 500px;
    height: 350px;
    flex-shrink: 0;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    background: #f9f9f9;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.carousel-item:hover img {
    transform: scale(1.05);
}

.carousel-project-title {
    display: none !important;
}

@media (max-width:1024px) {
    .carousel-item {
        width: 320px;
        height: 220px;
    }
}

@media (max-width:600px) {
    .carousel-item {
        width: 280px;
        height: 190px;
    }
}

.all-projects-carousel:not(.active) {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 40px !important;
    padding-bottom: 80px !important;
    overflow: visible !important;
    height: auto !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    transform: none !important;
}

.all-projects-carousel:not(.active) {
    display: none !important;
}

/* 
.sub-page-mode .anim-fade-up,
.sub-page-mode .anim-reveal,
.sub-page-mode .anim-hero-text,
.sub-page-mode .anim-card-enter {
    opacity: 1 !important;
    animation: none !important;
} 
*/

/* Projects Grid Container (Wraps Groups) - Now Block Level */
.projects-grid-container {
    display: none;
    width: 100%;
    padding: 20px 0 50px 0;
}

.projects-grid-container.active {
    display: block;
    /* Overrides previous grid */
    animation: fadeIn 0.5s ease forwards;
}

.grid-transition-enter {
    animation: scaleFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes scaleFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
        filter: blur(5px);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0px);
    }
}

/* Inner Grid for Items */
.project-items-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    width: 100%;
    margin-bottom: 40px;
    /* Space between groups */
}

/* Group Container */
.project-group {
    width: 100%;
}

.section-header.full-width {
    width: 100%;
    padding: 20px 0 20px 0;
    margin-top: 40px;
    margin-bottom: 20px;
    background-color: transparent;
    position: relative;
    z-index: 10;
}

@media (max-width: 768px) {
    .section-header.full-width {
        margin-top: 20px;
        padding-top: 10px;
        box-shadow: none;
    }

    /* Allow Multi-Line Project Title on Mobile */
    .section-header.full-width h3 {
        font-size: 1.1rem !important;
        /* Slightly larger for readability */
        white-space: normal !important;
        /* Allow wrapping */
        overflow: visible !important;
        text-overflow: clip !important;
        line-height: 1.4 !important;
        /* Better line height for multi-line */
        letter-spacing: 0.5px !important;
        word-wrap: break-word !important;
        padding-right: 10px;
    }
}

.section-header.full-width h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 300;
    color: #222;
    text-transform: capitalize;
    letter-spacing: 2px;
    margin: 0;
    text-align: left;
}

/* --- Sticky Filter Nav (Clean) --- */
.filter-nav {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 99;
}

/* --- Section Header Sticky Positions (Clean) --- */
/* --- Section Header Sticky Positions (Clean) - REMOVED PER USER REQUEST --- */
.section-header.full-width {
    position: relative;
    top: auto;
}

/* Ensure no transforms conflict with sticky */
/* Ensure no transforms conflict with sticky */
body.filter-hidden .filter-nav {
    transform: translateY(-200%) !important;
    /* Slide up and out */
    top: auto;
}

/* Transition removed */

.projects-grid-container.hidden {
    display: none !important;
}

.project-card.span-large {
    grid-column: span 2;
}

@media (max-width:600px) {
    .project-card.span-large {
        grid-column: span 1;
    }
}

.projects-grid-container.active {
    display: block;
    /* Ensure Block */
    animation: none;
}

.project-card {
    width: 100%;
    background: transparent;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.card-image-wrapper {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    margin-bottom: 0;
    border-radius: 4px;
    background: #f0f0f0;
    position: relative;
    /* Skeleton loading effect */
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .card-image-wrapper img {
    transform: scale(1.05);
}

.card-content {
    display: none !important;
    text-align: left;
    padding: 15px 0 0 0;
}

.card-title {
    font-family: var(--font-heading, "Montserrat", sans-serif);
    font-size: 1rem;
    font-weight: 600;
    text-transform: capitalize;
    color: #333;
    margin: 0 0 5px 0;
}

.card-category {
    font-family: var(--font-body, "Open Sans", sans-serif);
    font-size: 0.85rem;
    color: #777;
    margin: 0;
}

@media (max-width:1024px) {
    .project-items-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width:600px) {
    .project-items-grid {
        grid-template-columns: 1fr;
    }
}

html.sub-page-mode,
body.sub-page-mode {
    background-color: #ffffff !important;
    background-image: none !important;
}

.sub-page-mode .container {
    background-color: #ffffff !important;
    background-image: none !important;
}

.sub-page-mode .sidebar {
    background-color: #ffffff !important;
    box-shadow: none !important;
}

.sub-page-mode .hero-image-container {
    display: none !important;
}

.sub-page-mode .container::before,
.sub-page-mode .container::after {
    display: none !important;
    content: none !important;
    background: none !important;
}

.sub-page-mode .nav-link {
    color: #555555 !important;
}

.sub-page-mode .nav-link.active,
.sub-page-mode .nav-link:hover {
    color: #8CC63F !important;
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
}

.lightbox.visible {
    display: flex;
}

.lightbox-content {
    margin: auto;
    display: block;
    width: auto;
    height: auto;
    max-width: 90%;
    max-height: 90vh;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    animation: zoomIn 0.3s;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 10000;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

@keyframes zoomIn {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

@keyframes fadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding-bottom: 0 !important;
    margin-bottom: 5px;
}

.contact-form textarea {
    min-height: 35px !important;
    padding-top: 5px !important;
}

/* --- MOBILE RESPONSIVENESS AND HAMBURGER MENU --- */

/* Hamburger Button */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 2000;
    position: relative;
}

.hamburger-menu span {
    width: 100%;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Transform to X when active */
.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Mobile Sidebar Styling */
@media screen and (max-width: 1024px) {
    .site-header {
        justify-content: space-between;
        padding-right: 20px;
        width: 100%;
        left: 0;
        padding-left: 20px;
        top: 20px;
    }

    .branding-text {
        align-items: flex-start;
    }

    .hamburger-menu {
        display: flex;
        /* Show exclusively on mobile/tablet */
    }

    .sidebar {
        position: fixed;
        top: 0;
        right: -100%;
        /* Hidden off-screen */
        left: auto !important;
        /* Reset left position */
        width: 100%;
        /* Full screen overlay */
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98) !important;
        /* Opaque background */
        transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1500;
        display: flex !important;
        /* Ensure flex for centering */
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 120px;
        /* Start from top with safe padding */
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto !important;
    }

    .sidebar.active-nav {
        right: 0;
        /* Slide in */
    }

    .nav-menu {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .nav-link {
        font-size: 1.8rem;
        /* Larger touch targets */
        color: #333 !important;
        font-weight: 600;
    }

    /* Hide scroll when nav open */
    body.nav-open {
        overflow: hidden;
    }

    /* Adjust main content padding */
    .main-content {
        padding-top: 140px;
        /* Space for header */
        margin-left: 0;
        width: 100%;
        padding-right: 20px;
        padding-left: 20px;
    }

    /* Projects Grid - Ensure proper stacking */
    .projects-grid-container {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .footer {
        width: 100%;
        margin-left: 0;
    }
}

@media screen and (max-width: 600px) {
    .company-name {
        font-size: 1.4rem;
        /* Smaller branding */
        letter-spacing: 2px;
    }

    .company-bio {
        font-size: 0.65rem;
        flex-wrap: wrap;
    }

    .logo-container .company-logo {
        width: 60px;
        /* Smaller logo */
        height: auto;
    }
}

/* --- MOBILE HEADER GRID LAYOUT (Logo + Name on Line 1, Bio on Line 2) --- */
@media screen and (max-width: 768px) {
    .site-header {
        display: grid;
        grid-template-columns: auto 1fr auto;
        /* Logo, Name, Hamburger */
        grid-template-rows: auto auto;
        /* Top Row, Bio Row */
        column-gap: 15px;
        row-gap: 5px;
        align-items: center;
        padding: 15px 35px;
        /* Increased to fix corner alignment */
        height: auto;
    }

    /* Hide Branding when Nav Open */
    body.nav-open .logo-container,
    body.nav-open .company-name,
    body.nav-open .company-bio {
        visibility: hidden !important;
        transition: opacity 0.3s ease;
    }

    /* Remove White Header Background when Nav Open (Fix White Bar) */
    body.nav-open .site-header {
        background: transparent !important;
        box-shadow: none !important;
    }

    .branding-text {
        display: contents;
        /* Flattens children into the grid */
    }

    .logo-container {
        grid-column: 1;
        grid-row: 1;
        margin: 0;
        padding: 0;
    }

    .company-name {
        grid-column: 2;
        grid-row: 1;
        font-size: 1.1rem;
        /* Adjusted for mobile space */
        line-height: 1.2;
        margin: 0;
        text-align: left;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hamburger-menu {
        grid-column: 3;
        grid-row: 1;
        margin: 0;
        position: static;
        /* Let grid place it */
    }

    .company-bio {
        grid-column: 1 / -1;
        /* Span full width */
        grid-row: 2;
        font-size: 0.65rem;
        justify-content: flex-start;
        text-align: left;
        margin-top: 2px;
        white-space: nowrap;
        width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .site-header {
        gap: 20px;
        flex-wrap: wrap;
    }

    .project-items-grid {
        grid-template-columns: 1fr !important;
        /* 1 column on phone */
    }

    .hero-text {
        font-size: 1.2rem;
        padding: 0 10px;
    }

    .footer-content,
    .sub-page-mode .footer-content {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        /* 2 Columns */
        gap: 0px !important;
        /* Reduced gap as requested */
        width: 100% !important;
        padding: 20px 15px !important;
        align-items: start !important;
        text-align: left !important;
    }

    .footer-left,
    .sub-page-mode .footer-left {
        grid-column: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left !important;
        width: 100% !important;
        order: unset !important;
        /* Reset order */
    }

    .footer-right,
    .sub-page-mode .footer-right {
        grid-column: 2 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-end !important;
        text-align: right !important;
        width: 100% !important;
        order: unset !important;
    }

    /* Neatness: Smaller fonts & tight lines */
    .copyright-info p:last-child,
    .sub-page-mode .copyright-info p:last-child {
        margin-top: 55px !important;
        /* Increased significantly */
        font-weight: 500;
        opacity: 0.8;
    }

    .footer-contact p,
    .copyright-info p,
    .privacy-link a,
    .company-bio {
        font-size: 0.65rem !important;
        /* Slightly smaller */
        line-height: 1.2;
        margin-bottom: 2px;
        margin-top: 0;
    }

    .copyright-info {
        margin-bottom: 30px;
        /* Increased separation */
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }

    .privacy-link,
    .footer-logos {
        margin-top: 10px;
        /* Ensure they are pushed down */
    }

    .social-links {
        justify-content: flex-start;
        margin-bottom: 8px;
        gap: 15px;
    }

    .social-icon {
        font-size: 1rem;
    }

    /* Neatness: Smaller logos to fit */
    .footer-logos {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 8px;
    }

    .footer-logo-img {
        height: 25px !important;
        width: auto;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* Keep Phone/Code on ONE line */
    .form-row.phone-row {
        grid-template-columns: 80px 1fr !important;
        gap: 15px !important;
    }
}

/* --- FIX: ALLOW CLICKING MENU ITEMS THROUGH HEADER --- */
body.nav-open .site-header {
    pointer-events: none !important;
}

body.nav-open .hamburger-menu {
    pointer-events: auto !important;
    /* Keep close button clickable */
}

/* --- FORCE MOBILE HEADER: DESKTOP-LIKE LAYOUT (2 ROWS) --- */
@media screen and (max-width: 768px) {
    .site-header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: auto !important;
        background: rgba(255, 255, 255, 0.98) !important;
        z-index: 10000 !important;
        padding: 5px 15px 10px 15px !important;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05) !important;

        display: grid !important;
        grid-template-columns: auto 1fr !important;
        /* Col 1: Logo, Col 2: Name/Hamburger space */
        grid-template-rows: auto auto auto !important;
        /* Row 1: Hamburger, Row 2: Logo+Name, Row 3: Bio */
        column-gap: 10px !important;
        row-gap: 5px !important;
        align-items: center !important;
    }

    /* Adjust padding to prevent overlap with taller header */
    body {
        padding-top: 160px !important;
        /* Push content down significantly */
    }

    .sidebar {
        z-index: 9999 !important;
        padding-top: 70px !important;
    }

    .branding-text {
        display: contents !important;
    }

    /* Force content to top and reduce side padding */
    .main-content,
    .page-section {
        margin-top: 0 !important;
        padding-top: 0 !important;
        padding-left: 10px !important;
        /* Maximized space */
        padding-right: 10px !important;
    }

    /* Full Text Visibility for Hero Tagline */
    /* Full Text Visibility for Hero Tagline */
    .hero-text {
        font-size: clamp(0.9rem, 4vw, 1.3rem) !important;
        white-space: normal !important;
        line-height: 1.2 !important;
        text-align: left !important;
        margin-left: 0 !important;
        /* Remove indent to align with image */
        padding-left: 0 !important;
    }

    /* Ensure image container is flush left */
    .hero-image-container {
        margin-left: 0 !important;
        width: 100% !important;
        /* Full width relative to parent padding */
        padding-left: 0 !important;
    }

    .section-heading {
        margin-top: 10px !important;
        /* Minimal spacing for heading */
        margin-bottom: 15px !important;
    }

    /* Fix About Us Text (No Hyphens, Smaller Font) */
    .page-section p {
        font-size: 1rem !important;
        /* Smaller than 1.3rem */
        line-height: 1.5 !important;
        hyphens: none !important;
        -webkit-hyphens: none !important;
        -ms-hyphens: none !important;
        text-align: justify !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;
    }

    /* Fix typography: Remove justify spacing rivers */
    /* Fix typography: Justify BUT control gaps */
    .main-content p {
        text-align: justify !important;
        text-justify: inter-word !important;
        /* Spreads space between words, not letters */
        -webkit-hyphens: auto !important;
        -moz-hyphens: auto !important;
        -ms-hyphens: auto !important;
        hyphens: auto !important;
        /* Allows breaking words to fill lines better */
        word-break: break-word !important;
        overflow-wrap: break-word !important;
    }

    /* --- ROW 1: Logo, Name, Hamburger --- */

    /* --- ROW 2: Logo & Name --- */

    /* Logo (Left) */
    .logo-container {
        grid-column: 1 !important;
        grid-row: 2 !important;
        margin: 0 !important;
        padding-bottom: 5px !important;
        display: flex !important;
        align-items: center !important;
    }

    .logo-container .company-logo {
        width: 50px !important;
        height: auto !important;
        display: block !important;
    }

    /* Company Name (Right of Logo) */
    .company-name {
        grid-column: 2 !important;
        grid-row: 2 !important;
        /* Larger font for prominence */
        font-size: clamp(0.9rem, 4vw, 1.2rem) !important;
        line-height: 1.1 !important;
        margin: 0 !important;
        text-align: left !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: clip !important;
        color: #333 !important;
        display: block !important;
    }

    /* --- ROW 1: Hamburger Menu (Top Right) --- */
    .hamburger-menu {
        grid-column: 1 / -1 !important;
        grid-row: 1 !important;
        justify-self: end !important;
        margin-bottom: 5px !important;
        width: 30px !important;
        /* Fixed width for icon */
        height: 22px !important;
        display: flex !important;
        flex-direction: column !important;
        /* Stack lines vertically */
        justify-content: space-between !important;
        cursor: pointer !important;
    }

    /* --- ROW 3: Bio (Full Width - Left Aligned) --- */
    .company-bio {
        grid-column: 1 / -1 !important;
        grid-row: 3 !important;
        /* precise sizing to fit single line */
        font-size: clamp(0.4rem, 2.4vw, 0.65rem) !important;
        color: #556B2F !important;
        font-family: 'Calibri', sans-serif !important;
        font-weight: 500 !important;
        margin-top: 0px !important;
        /* Tighten gap */
        white-space: nowrap !important;
        /* Force Single Line */
        text-align: left !important;
        /* Left Align */
        justify-content: flex-start !important;
        display: flex !important;
        width: 100% !important;
        letter-spacing: 0.2px !important;
        /* Tighten spacing to fit */
        text-transform: uppercase !important;
        padding-left: 0 !important;
        /* Align exactly with logo edge */
    }
}

/* --- FORCE SUB-PAGE FOOTER FIX --- */
.sub-page-mode .footer {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
    position: relative;
    z-index: 50;
    width: 100% !important;
    margin-top: 0 !important;
    padding-top: 20px !important;
    padding-bottom: 20px !important;
}

.sub-page-mode .footer p,
.sub-page-mode .footer a {
    color: #ffffff !important;
    opacity: 0.9;
}

.sub-page-mode .footer-logo-img {
    filter: brightness(0) invert(1) !important;
    opacity: 0.9;
}


/* --- REFINED SUB-PAGE FOOTER FIX --- */

/* 1. Desktop & Global Defaults (White Background, Dark Text) */
.sub-page-mode .footer {
    position: relative !important;
    background-color: transparent !important;
    /* Transparent for Desktop */
    color: #333333 !important;
    /* Dark Text */
    overflow: hidden !important;
    border-top: none !important;
    /* Remove border */
    width: calc(100% + 320px) !important;
    /* BREAK OUT OF MAIN CONTENT */
    margin-left: -320px !important;
    display: flex !important;
    justify-content: center !important;
    /* Center the content wrapper */
}

/* NEW: Balance the footer content on desktop */
/* NEW: Balance the footer content on desktop */
.sub-page-mode .footer-content {
    position: relative !important;
    z-index: 10 !important;
    /* Ensure clickable above particles */
    max-width: 1400px !important;
    width: 85% !important;
    /* Return to 85% now that container is full width */
    margin: 0 auto !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
}

/* Ensure children behave in flex */
.sub-page-mode .footer-left {
    text-align: left !important;
    flex: 0 0 auto !important;
}

.sub-page-mode .footer-right {
    text-align: right !important;
    flex: 0 0 auto !important;
}

.sub-page-mode .footer p,
.sub-page-mode .footer a,
.sub-page-mode .footer-contact,
.sub-page-mode .social-icon,
.sub-page-mode .social-icon i {
    color: #333333 !important;
    /* Dark Text */
    opacity: 1 !important;
}

.sub-page-mode .footer-logo-img {
    filter: none !important;
    /* Normal colors */
    opacity: 1 !important;
}

#particles-canvas {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
    pointer-events: none !important;
    opacity: 0.5;
    /* Subtle */
}

/* 2. Mobile Overrides (Dark Background, White Text) */
@media screen and (max-width: 768px) {

    /* --- Footer: Default (Home Page) - Transparent/Light for particles --- */
    .footer {
        background: transparent !important;
        /* Restore Home Page Transparency */
    }

    .footer-content {
        position: relative !important;
        z-index: 10 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        padding: 40px 20px !important;
        height: auto !important;
        gap: 30px !important;
    }

    /* Override: Ensure Footer Left is visible (User requested full content) */
    .footer-left {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        order: 1 !important;
        width: 100% !important;
    }

    .footer-right {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        order: 2 !important;
    }

    /* Force Center Alignment for Inner Elements on Mobile */
    .social-links {
        justify-content: center !important;
        margin-bottom: 20px !important;
    }

    .footer-contact {
        align-items: center !important;
        text-align: center !important;
        margin-bottom: 20px !important;
    }

    .footer-logos {
        justify-content: center !important;
        margin-bottom: 10px !important;
    }

    .copyright-info {
        align-items: center !important;
        text-align: center !important;
    }

    /* --- User Request: REMOVE Footer on Sub-Pages (Mobile Only) --- */
    /* --- User Request: REMOVE Footer on Sub-Pages (Mobile Only) - REVERTED for v25.0 --- */
    /*
    .sub-page-mode .footer {
        display: none !important;
    }
    */

    /* --- NUCLEAR FIX: RESET FOOTER GEOMETRY ON MOBILE (v26.0) --- */
    /* Fixes the "cut off" issue caused by desktop sidebar offset */
    /* --- NUCLEAR FIX: RESET FOOTER GEOMETRY & COLOR ON MOBILE (v29.0) --- */
    /* Fixes the "cut off" issue AND "invisible text/logos" issue with HIGH SPECIFICITY */
    body.sub-page-mode .footer {
        width: 100% !important;
        margin-left: 0 !important;
        padding-top: 0 !important;
        margin-top: 0 !important;
        display: block !important;
        background: transparent !important;
        /* Ensure background allows particles */
        position: relative !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
    }

    /* Force DARK text on Mobile Sub-Pages so it's visible on white */
    .sub-page-mode .footer p,
    .sub-page-mode .footer a,
    .sub-page-mode .footer i,
    .sub-page-mode .footer span {
        color: #000000 !important;
        text-shadow: none !important;
    }

    /* Ensure Logos are FULL COLOR (not white-washed) */
    .sub-page-mode .footer-logo-img {
        filter: none !important;
        opacity: 1 !important;
    }

    /* --- NUCLEAR FIX: OVERRIDE DESKTOP SPECIFICITY FOR FOOTER CONTENT (v28.0) --- */
    .sub-page-mode .footer-content {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 40px 20px !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 30px !important;
    }

    .sub-page-mode .footer-left,
    .sub-page-mode .footer-right {
        width: 100% !important;
        text-align: center !important;
        align-items: center !important;
        display: flex !important;
        flex-direction: column !important;
        order: unset !important;
        /* Reset any order shifts */
    }

    .sub-page-mode .footer-left {
        order: 1 !important;
        flex: auto !important;
    }

    .sub-page-mode .footer-right {
        order: 2 !important;
        flex: auto !important;
    }

    .sub-page-mode .social-links,
    .sub-page-mode .footer-contact,
    .sub-page-mode .footer-logos,
    .sub-page-mode .copyright-info {
        justify-content: center !important;
        text-align: center !important;
        align-items: center !important;
        width: 100% !important;
    }

    /* --- CRITICAL MOBILE VISIBILITY FIXES --- */
    @media screen and (max-width: 768px) {

        /* 1. Disable Entrance Animations & Force Visibility - REMOVED TO ALLOW MODERN ANIMATIONS */
        /* 
        .anim-fade-up,
        .anim-text-reveal,
        .anim-img-scale,
        .anim-section-fade,
        .carousel-item,
        .project-img-wrapper img,
        body .anim-fade-up {
            opacity: 1 !important;
            transform: none !important;
            animation: none !important;
            visibility: visible !important;
        } 
        */

        /* 2. Force Filter Nav Visibility & Smart Hide */
        /* 2. Force Filter Nav Visibility & Smart Hide */
        .filter-nav {
            display: flex !important;
            width: 100% !important;
            overflow-x: auto !important;
            padding: 10px 0 !important;
        }

        /* HIDE when scrolling down (class added by JS) - REMOVED */

        /* 3. Force Content Containers */
        .main-content {
            opacity: 1 !important;
            visibility: visible !important;
            overflow: visible !important;
            display: block !important;
            min-height: 100vh !important;
        }

        /* 4. Force "All" Carousel Horizontal Visibility (Desktop-like) */
        .all-projects-carousel.active {
            display: flex !important;
            /* Direct Flex Container */
            flex-direction: row !important;
            flex-wrap: nowrap !important;
            /* CRITICAL: Prevent stacking */
            overflow-x: auto !important;
            /* Enable horizontal swipe */
            scroll-behavior: smooth;
            width: 100% !important;
            height: auto !important;
            margin-top: 20px !important;
            padding-bottom: 30px !important;
            gap: 20px !important;
            -webkit-overflow-scrolling: touch;
            align-items: flex-start !important;
            justify-content: flex-start !important;
        }

        /* Remove incorrect track selector if it exists */
        .all-projects-carousel.active .carousel-track {
            display: contents !important;
            /* Unwrap if it miraculously exists, or just ignore */
        }

        .all-projects-carousel.active .carousel-item {
            width: 300px !important;
            height: 220px !important;
            opacity: 1 !important;
            display: block !important;
            flex: 0 0 auto !important;
            /* Rigid width, no shrinking */
            margin-bottom: 0 !important;
            margin-right: 0 !important;
            transform: none !important;
        }

        /* Force Buttons Visible on Mobile */
        .carousel-btn {
            display: flex !important;
            width: 40px !important;
            height: 40px !important;
            font-size: 1.2rem !important;
            opacity: 0.9 !important;
            background: #8CC63F !important;
            z-index: 100 !important;
        }

        /* 5. Force Category Grids */
        .projects-grid-container.active {
            display: block !important;
            opacity: 1 !important;
            position: relative !important;
            z-index: 10 !important;
        }

        .project-items-grid {
            display: grid !important;
            grid-template-columns: repeat(2, 1fr) !important;
            /* Changed to 2 columns */
            gap: 15px !important;
            /* Slightly smaller gap for better fit */
            width: 100% !important;
        }

        /* Ensure Headers Show FULL TEXT (Wrapped) - Strong Override */
        .section-header.full-width {
            margin-bottom: 30px !important;
            margin-top: 50px !important;
            width: 100% !important;
            box-sizing: border-box !important;
            white-space: normal !important;
            display: block !important;
            position: relative !important;
            z-index: 10 !important;
            padding: 10px 0 !important;
            height: auto !important;
            clear: both !important;
        }

        .section-header.full-width h3 {
            white-space: normal !important;
            overflow: visible !important;
            text-overflow: clip !important;
            display: block !important;
            width: 100% !important;
            font-size: 1.4rem !important;
            line-height: 1.4 !important;
            padding: 0 !important;
            text-align: left !important;
            letter-spacing: 1px !important;
            font-weight: 400 !important;
            word-wrap: break-word !important;
            overflow-wrap: break-word !important;
            -webkit-line-clamp: none !important;
            line-clamp: none !important;
            max-width: none !important;
            margin: 0 !important;
        }
    }

    /* FORCE FILTER NAV ALWAYS VISIBLE */
    body.filter-hidden .filter-nav,
    .filter-nav {
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        display: flex !important;
    }
}

/* --- NUCLEAR FIX: MOBILE FOOTER REMOVED (v16.0) --- */
@media screen and (max-width: 768px) {
    /* 
    body.sub-page-mode .footer {
        display: none !important; 
    }
    */
}

/* --- NUCLEAR FIX: SINGLE LINE TITLES ON MOBILE (v23.0) --- */
/* --- NUCLEAR FIX (v23.0) REMOVED - Titles now wrap freely --- */

/* --- FOOTER CONTACT CENTER FIX (v30.0) --- */
@media screen and (max-width: 768px) {

    /* Target both standard and sub-page modes with high specificity */
    .footer-content .footer-contact,
    .sub-page-mode .footer-content .footer-contact,
    .footer-left .footer-contact,
    .sub-page-mode .footer-left .footer-contact {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        width: 100% !important;
        margin-bottom: 20px !important;
    }

    /* Force text alignment for paragraphs inside */
    .footer-content .footer-contact p,
    .sub-page-mode .footer-content .footer-contact p,
    .footer-left .footer-contact p,
    .sub-page-mode .footer-left .footer-contact p {
        text-align: center !important;
        width: auto !important;
        /* Allow flexbox centering to work properly */
        display: block !important;
        margin: 0 auto 5px auto !important;
        /* Center block itself + spacing */
    }
}


/* --- Floating Scroll Navigation --- */
.scroll-nav {
    position: fixed;
    right: 25px;
    bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform: translateX(20px);
}

.scroll-nav.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.scroll-btn {
    width: 45px;
    height: 45px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    font-size: 1.1rem;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.scroll-btn:hover {
    background-color: #9ABF80;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(154, 191, 128, 0.3);
}

.scroll-btn:active {
    transform: translateY(0) scale(0.95);
}

#scroll-bottom {
    background-color: #f5f5f5;
    color: #000;
}

#scroll-bottom:hover {
    background-color: #9ABF80;
    color: #fff;
}

@media (max-width: 768px) {
    .scroll-nav {
        right: 15px;
        bottom: 15px;
        gap: 10px;
    }

    .scroll-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}
