:root {
    --primary-font: 'Inter', sans-serif;
    --text-color-light: rgba(255, 255, 255, 0.9);
    --text-color-dark: rgba(255, 255, 255, 0.7);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glow-color: rgba(173, 216, 230, 0.2); /* Light Blue Glow */
    --hover-bg: rgba(255, 255, 255, 0.15);
    --active-bg: rgba(255, 255, 255, 0.25);
    --dark-blue-backdrop: #0a0a2a; /* Deep blurred backdrop for sections */
    --dark-grey-backdrop: #1a1a1a;
    --black-backdrop: #000000;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--primary-font);
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, var(--dark-blue-backdrop) 0%, var(--black-backdrop) 100%);
    color: var(--text-color-light);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll from overflow */
}

/* Base Styles for all centered content sections */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* Consistent padding */
    text-align: center; /* Center text content */
}

section {
    padding: 80px 0;
    position: relative;
    overflow: hidden; /* For glassmorphic elements within */
}

section:nth-of-type(odd) {
    background: linear-gradient(135deg, rgba(10, 10, 42, 0.8) 0%, rgba(0, 0, 0, 0.8) 100%);
}

section:nth-of-type(even) {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(0, 0, 0, 0.8) 100%);
}

h1, h2, h3 {
    color: var(--text-color-light);
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 0 10px var(--glow-color);
}

h1 {
    font-size: 3.5em;
    line-height: 1.2;
}

h2 {
    font-size: 2.8em;
    line-height: 1.3;
}

h3 {
    font-size: 1.8em;
    line-height: 1.4;
    font-weight: 600;
}

p {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: var(--text-color-dark);
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    color: var(--text-color-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    text-shadow: 0 0 5px var(--glow-color);
}

.cta-button:hover {
    background: var(--hover-bg);
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2), 0 0 15px var(--glow-color);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    margin-bottom: 20px; /* For stacking items */
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2), 0 0 15px var(--glow-color);
    transform: translateY(-5px);
}

/* Header & Navigation */
.main-header {
    background: rgba(0, 0, 0, 0.4); /* Slightly opaque for visibility */
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-brand {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--text-color-light);
    text-shadow: 0 0 8px var(--glow-color);
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--text-color-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05em;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--glow-color);
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
    left: 0;
}

.nav-links a:hover {
    color: rgba(255, 255, 255, 1); /* Slight brightening on hover */
    text-shadow: 0 0 5px var(--glow-color);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('images/image_22.jpg'); /* Large background image */
    background-size: cover;
    background-position: center;
    position: relative;
    text-align: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay */
    backdrop-filter: blur(5px); /* Soft blur for the glass effect on the background */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(15px); /* Stronger blur for content container */
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 8px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: fadeIn 1.5s ease-out;
}

.hero-content h1 {
    font-size: 4.5em; /* Larger for hero */
    margin-bottom: 25px;
    text-shadow: 0 0 20px rgba(173, 216, 230, 0.5);
    color: var(--text-color-light);
}

.hero-content p {
    font-size: 1.25em;
    margin-bottom: 30px;
    color: var(--text-color-light);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

@keyframes fadeIn {
    from {
        opacity: 1;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About Section - Timeline Layout */
.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 60px auto 0 auto;
    padding: 0 20px;
    text-align: center; /* Ensure overall timeline is centered */
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--glass-border);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
    z-index: 0;
}

.timeline-item {
    padding: 10px 0;
    position: relative;
    width: 50%;
    margin-bottom: 40px;
    text-align: center;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 60px; /* Space for dot */
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 60px; /* Space for dot */
    text-align: left;
}

.timeline-dot {
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--glow-color);
    border: 2px solid var(--text-color-light);
    top: 20px;
    z-index: 1;
    box-shadow: 0 0 15px var(--glow-color);
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -9px;
    left: auto;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -9px;
    right: auto;
}

.timeline-content {
    padding: 25px;
    animation: fadeUp 0.8s ease-out forwards;
    opacity: 1;
    transform: translateY(20px);
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Services Section - Horizontal Cards */
.horizontal-cards-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    margin-top: 40px;
    padding-bottom: 20px; /* Space for scrollbar */
    position: relative;
    z-index: 1; /* Ensure cards are above background */
}

.horizontal-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Exactly 3 cards */
    gap: 30px;
    padding: 0 20px; /* Padding for scrollable content */
    min-width: fit-content; /* Ensure grid doesn't wrap prematurely */
    justify-items: center; /* Center cards within grid cells */
    align-items: start; /* Align cards to the top within grid cells */
}

.service-card {
    text-align: center;
    scroll-snap-align: start;
    min-width: 300px; /* Minimum width for card */
    width: 100%; /* Take full width of grid column */
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.service-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Portfolio Section - Filterable Gallery */
.portfolio-filters {
    margin-top: 40px;
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-button {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 12px 25px;
    color: var(--text-color-light);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    font-size: 1em;
    text-shadow: 0 0 5px var(--glow-color);
}

.filter-button:hover {
    background: var(--hover-bg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 0 10px var(--glow-color);
    transform: translateY(-2px);
}

.filter-button.active {
    background: var(--active-bg);
    border-color: var(--glow-color);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.2), 0 0 12px var(--glow-color);
    transform: translateY(-1px);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Exactly 3 cards per row */
    gap: 30px;
    margin-top: 40px;
    justify-items: center; /* Center items in the grid */
}

.portfolio-item {
    width: 100%; /* Take full width of grid cell */
    text-align: center;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.portfolio-item.hidden {
    opacity: 1;
    transform: translateY(20px);
    pointer-events: none; /* Disable interaction */
    display: none; /* Remove from flow to prevent empty spaces */
}

.portfolio-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    object-fit: cover;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.portfolio-info h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
}

.portfolio-info p {
    font-size: 0.95em;
    color: var(--text-color-dark);
}

/* Gallery Section - Lightbox Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Exactly 3 cards per row */
    gap: 30px;
    margin-top: 40px;
    justify-items: center;
}

.gallery-item {
    cursor: pointer;
    text-align: center;
    position: relative;
    box-sizing: border-box;
    overflow: hidden; /* For hover effects */
}

.gallery-item img {
    max-width: 100%;
    height: 300px; /* Fixed height for consistency */
    border-radius: 8px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: brightness(0.8);
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    animation: fadeInLightbox 0.3s ease-out;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    display: block;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(173, 216, 230, 0.5); /* Stronger glow */
    animation: zoomIn 0.3s ease-out;
}

.close-button {
    position: absolute;
    top: 20px;
    right: 35px;
    color: var(--text-color-light);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    text-shadow: 0 0 10px var(--glow-color);
}

.close-button:hover {
    color: var(--glow-color);
}

@keyframes fadeInLightbox {
    from { opacity: 1; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 1; }
    to { transform: scale(1); opacity: 1; }
}


/* FAQ Section - Interactive Chat (Accordion Style) */
.faq-chat-container {
    max-width: 800px;
    margin: 40px auto;
    text-align: left; /* Align questions/answers left */
}

.tab-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tab-button {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 18px 25px;
    text-align: left;
    color: var(--text-color-light);
    font-size: 1.15em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    width: 100%;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    text-shadow: 0 0 5px var(--glow-color);
}

.tab-button::after {
    content: '+';
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    transition: transform 0.3s ease;
}

.tab-button.active::after {
    content: '-';
    transform: translateY(-50%) rotate(180deg);
}

.tab-button:hover {
    background: var(--hover-bg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 0 10px var(--glow-color);
    transform: translateY(-2px);
}

.tab-button.active {
    background: var(--active-bg);
    border-color: var(--glow-color);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.2), 0 0 12px var(--glow-color);
    transform: translateY(-1px);
}

.tab-pane {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out, opacity 0.5s ease-out;
    opacity: 1;
    padding: 0 25px; /* Initial zero padding */
    margin-top: 10px; /* Space between question and answer */
    box-sizing: border-box; /* Ensure padding doesn't affect total width */
    text-align: left;
    border-color: transparent; /* Hide border initially */
    box-shadow: none; /* Hide shadow initially */
}

.tab-pane.active {
    max-height: 500px; /* Arbitrary large value to allow content to show */
    padding: 25px; /* Active padding */
    opacity: 1;
    border-color: var(--glass-border); /* Show border when active */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); /* Show shadow when active */
}

.tab-pane p {
    margin-bottom: 0; /* No extra margin for last paragraph in pane */
}

/* Contact Section - Side by Side (Adapted for info only) */
.two-column-layout {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.left-panel, .right-panel {
    flex: 1;
    min-width: 300px; /* Minimum width before wrapping */
    text-align: center;
    box-sizing: border-box;
    padding: 40px;
}

.left-panel h3, .right-panel h3 {
    margin-bottom: 25px;
}

/* Footer */
.main-footer {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
}

.main-footer h2 {
    font-size: 2em;
    margin-bottom: 20px;
    text-shadow: 0 0 10px var(--glow-color);
}

.main-footer p {
    font-size: 0.95em;
    color: var(--text-color-dark);
    margin-bottom: 30px;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
}

.footer-nav a {
    color: var(--text-color-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 1em;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--text-color-light);
    text-shadow: 0 0 5px var(--glow-color);
}


/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .nav-links {
        display: flex; /* Keep nav links for wider tablets, adjust layout */
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 10px;
    }
    .main-nav {
        flex-direction: column;
        gap: 10px;
    }

    .hero-content h1 {
        font-size: 3.5em;
    }

    h1 { font-size: 2.8em; }
    h2 { font-size: 2.2em; }
    h3 { font-size: 1.5em; }
    p { font-size: 1em; }

    .horizontal-cards {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Allow flexible wrap */
        justify-content: center; /* Center cards if they don't fill a row */
        grid-auto-flow: column; /* Keep horizontal flow for overflow */
    }
    
    .service-card {
        min-width: 300px; /* Ensure cards are at least 300px wide */
    }

    .portfolio-grid, .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* More flexible on tablets */
        gap: 20px;
    }

    .portfolio-item, .gallery-item {
        width: 100%;
        max-width: 350px; /* Constrain max width for better appearance */
    }

    .timeline-container::after {
        left: 20px; /* Move timeline line to the left */
    }

    .timeline-item {
        width: 100%;
        padding-left: 60px; /* All items aligned left */
        padding-right: 0;
        text-align: left;
        left: 0;
    }

    .timeline-item:nth-child(odd) {
        text-align: left;
        padding-right: 0;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-dot {
        left: 11px !important; /* Ensure dot aligns with line */
        right: auto !important;
    }
    
    .two-column-layout {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .main-nav {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .nav-brand {
        margin-bottom: 10px;
    }
    .nav-links {
        flex-direction: column;
        gap: 10px;
        display: flex; /* Ensure nav links are still displayed if in mobile menu */
    }
    .hero-content {
        padding: 30px;
        max-width: 90%;
    }
    .hero-content h1 {
        font-size: 2.5em;
    }
    .hero-content p {
        font-size: 1em;
    }

    h1 { font-size: 2.2em; }
    h2 { font-size: 1.8em; }
    h3 { font-size: 1.3em; }

    section {
        padding: 60px 0;
    }

    .horizontal-cards {
        grid-template-columns: 1fr; /* Stack cards vertically */
        padding: 0 10px;
        overflow-x: hidden; /* No horizontal scroll on mobile */
    }
    .service-card {
        width: 90%; /* Occupy more width */
        max-width: 400px; /* Max width for single column */
        margin: 0 auto; /* Center single card */
    }
    
    .portfolio-grid, .gallery-grid {
        grid-template-columns: 1fr; /* Single column layout */
        max-width: 400px; /* Constrain width for single column */
        margin-left: auto;
        margin-right: auto;
    }
    .portfolio-item, .gallery-item {
        width: 100%;
    }

    .portfolio-filters {
        flex-direction: column;
        gap: 10px;
    }

    .filter-button {
        width: 80%;
        margin: 0 auto;
    }

    .faq-chat-container {
        max-width: 90%;
    }

    .tab-button {
        font-size: 1em;
        padding: 15px 20px;
    }
    .tab-pane {
        padding: 15px 20px;
    }

    .footer-nav ul {
        flex-direction: column;
        gap: 15px;
    }
}

/* Transitions for elements appearing with Intersection Observer */
.fade-in-on-scroll {
    opacity: 1;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}


javascript
/* JS */
    // Smooth scrolling for navigation
            e.preventDefault();
            if (targetElement) {
                // Adjust for fixed header height

                    top: offsetPosition,
                    behavior: "smooth"
                });

                // Update active class in navigation
            }
        });
    });

    // Intersection Observer for fade-in animations
        threshold: 0.1, // Trigger when 10% of the element is visible
        rootMargin: "0px 0px -50px 0px" // Reduce margin to make it appear slightly later
    };

            if (!entry.isIntersecting) {
                return;
            } else {
                appearOnScroll.unobserve(entry.target);
            }
        });
    }, appearOptions);

        // Add a generic class for all elements that should fade in
        appearOnScroll.observe(fader);
    });

    // Portfolio Filterable Gallery

            // Remove active class from all buttons and add to clicked one



                if (filter === 'all' || itemCategory === filter) {
                    item.style.display = 'block'; // Show item for layout
                    // Re-observe for fade-in if it was hidden
                    appearOnScroll.observe(item);
                } else {
                    item.style.display = 'none'; // Hide item from layout
                }
            });
        });
    });

    // Lightbox Gallery

            lightbox.style.display = 'flex';
            lightboxImg.src = item.dataset.src;
        });
    });

        lightbox.style.display = 'none';
    });

        if (e.target === lightbox) { // Close if clicked outside the image
            lightbox.style.display = 'none';
        }
    });

    // Interactive Chat FAQ (Accordion Style)

            event.preventDefault();

            if (targetPanel) {
                // Toggle active class on button

                // Toggle active class on panel to show/hide

                // If multiple open not allowed, close others
                    }
                });
            }
        });
    });
});

/* Visible state helpers */
+ .animate-fade-in-up.visible,
+ .animate-fade-in-left.visible,
+ .animate-fade-in-right.visible,
+ .animate-bounce-y.visible,
+ .section-scroll-animate.visible,
+ .text-animate-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Universal Icon Fixes for Buttons */
button svg, .carousel-next svg, .carousel-prev svg, .slider-next svg, .slider-prev svg,
.next svg, .prev svg, .tab-button svg, .tab-btn svg {
    display: inline-block;
    vertical-align: middle;
    pointer-events: none;
    width: 1em;
    height: 1em;
    fill: currentColor;
}

button i, .carousel-next i, .carousel-prev i, .slider-next i, .slider-prev i,
.next i, .prev i, .tab-button i, .tab-btn i {
    display: inline-block;
    vertical-align: middle;
    pointer-events: none;
    font-style: normal;
}

button .icon, .carousel-next .icon, .carousel-prev .icon,
.slider-next .icon, .slider-prev .icon, .tab-button .icon {
    display: inline-block;
    vertical-align: middle;
    pointer-events: none;
}

/* Ensure carousel buttons are clickable even with icons */
.carousel-next, .carousel-prev, .slider-next, .slider-prev,
.next, .prev, .next-btn, .prev-btn {
    cursor: pointer;
    position: relative;
}

.carousel-next *, .carousel-prev *, .slider-next *, .slider-prev *,
.next *, .prev *, .next-btn *, .prev-btn * {
    pointer-events: none;
}

/* Tab button icon fixes */
.tab-button, .tab-btn, .tab {
    cursor: pointer;
    position: relative;
}

.tab-button *, .tab-btn *, .tab * {
    pointer-events: none;
}

/* Ensure icons don't block clicks */
button > svg, button > i, button > .icon,
.carousel-next > svg, .carousel-prev > svg,
.tab-button > svg, .tab-button > i {
    pointer-events: none !important;
}

/* Universal Content Centering Fixes */
/* Center main containers */
.container, .content-container, .wrapper, .section-container, .main-container {
    max-width: 1200px;
    margin: 0 auto !important;
    padding: 0 20px;
    width: 100%;
}

/* Center standalone images directly in sections (not in cards/grids) */
section > img, .section > img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

/* Center images in content areas */
.content-section img, .text-content img, .about-content img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

/* Center buttons and CTAs within sections */
section .btn, section .cta-button, section .cta-btn,
.section .btn, .section .cta-button, .section .cta-btn,
.call-to-action button, .call-to-action .btn {
    display: inline-block;
    margin: 0.5em auto;
}

/* Center text headings and paragraphs in sections */
section > h1, section > h2, section > h3, section > h4,
.section > h1, .section > h2, .section > h3, .section > h4 {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

section > p, .section > p {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Ensure hero sections are centered */
.hero, .hero-section, .banner {
    text-align: center;
}

.hero > *, .hero-section > *, .banner > * {
    margin-left: auto;
    margin-right: auto;
}

.hero img, .hero-section img, .banner img {
    margin: 0 auto;
    display: block;
}

/* Center two-column content containers */
.two-column {
    justify-content: center;
    align-items: center;
}

/* Fix unbalanced layouts - center content that's off to one side */
section[style*="text-align: left"] > h1,
section[style*="text-align: left"] > h2,
section[style*="text-align: left"] > h3,
section[style*="text-align: left"] > p {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Center content in about, services, and other main sections */
.about-section, .services-section, .features-section, .highlights-section {
    text-align: center;
}

.about-section > *, .services-section > *, 
.features-section > *, .highlights-section > * {
    margin-left: auto;
    margin-right: auto;
}

/* Safe visibility overrides (auto-added) */
:root, html, body, main, header, footer, section, .container, .content {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Accessibility focus outlines */
:focus{outline:2px solid #5ac8fa;outline-offset:2px;}
:focus:not(:focus-visible){outline:none;}
