/* --- ✨ DUAL THEME DESIGN SYSTEM ✨ --- */

/* === ☀️ LIGHT THEME (DEFAULT) === */
:root {
    /* Colors */
    --bg-color: #f9fafb;
    --surface-color: #ffffff;
    --border-color: #e5e7eb;
    --accent-color: #4338ca;
    /* Indigo */
    --accent-color-hover: #4f46e5;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --logo-filter: none;

    /* Shadows & Glows */
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -4px rgba(0, 0, 0, 0.07);
    --glow-shadow: 0 0 15px rgba(67, 56, 202, 0.15);
    --glow-shadow-hover: 0 0 25px rgba(67, 56, 202, 0.2), 0 0 8px rgba(67, 56, 202, 0.1);

    /* ✨ FIX: Added missing border-radius variable */
    --border-radius: 12px;
}

/* === 🌙 DARK THEME === */
[data-theme="dark"] {
    /* Colors */
    --bg-color: #111827;
    --surface-color: #1f2937;
    --border-color: #374151;
    --accent-color: #22d3ee;
    /* Cyan */
    --accent-color-hover: #67e8f9;
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --logo-filter: brightness(0) invert(1);
    /* Makes logo and other icons white */

    /* Shadows & Glows */
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -2px rgba(0, 0, 0, 0.2);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
    --glow-shadow: 0 0 15px rgba(34, 211, 238, 0.15);
    --glow-shadow-hover: 0 0 25px rgba(34, 211, 238, 0.3), 0 0 8px rgba(34, 211, 238, 0.2);
}

/* === GLOBAL STYLES === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    color-scheme: light dark;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 400;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.mobile-nav-open {
    overflow: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

h1,
h2,
h3,
h4 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 {
    font-size: 2.5em;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.2rem;
}

h3 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color-hover);
}

img {
    max-width: 100%;
    display: block;
}

.gsap-reveal {
    opacity: 0;
}

/* === HEADER & NAVIGATION === */
.main-header {
    background-color: color-mix(in srgb, var(--surface-color) 70%, transparent);
    backdrop-filter: blur(12px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.main-header .container,
.header-controls,
.logo {
    display: flex;
    align-items: center;
}

.header-controls {
    gap: 1rem;
    margin-left: auto;
    /* ✨ FIX: Pushes controls to the far right */
}

.logo {
    gap: 0.75rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo img {
    height: 32px;
    width: auto;
    filter: var(--logo-filter);
    transition: filter 0.3s ease;
}

.logo:hover {
    color: var(--text-primary);
}

.main-nav ul {
    list-style-type: none;
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.main-nav a {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--accent-color-hover);
    text-shadow: var(--glow-shadow);
}

/* === ✨ FIX: HAMBURGER MENU STYLES ✨ === */
.hamburger-btn {
    display: none;
    /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    /* Must be on top of the mobile menu overlay */
    width: 24px;
    height: 24px;
    margin-right: 1rem;
    /* Space between hamburger and logo */
}

.hamburger-btn .line {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    display: block;
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

.mobile-nav-open .hamburger-btn .line1 {
    transform: translateY(7px) rotate(45deg);
}

.mobile-nav-open .hamburger-btn .line2 {
    opacity: 0;
}

.mobile-nav-open .hamburger-btn .line3 {
    transform: translateY(-7px) rotate(-45deg);
}

/* === THEME TOGGLE BUTTON === */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    border-color: var(--accent-color);
    transform: rotate(15deg) scale(1.1);
    box-shadow: var(--glow-shadow);
}

.theme-toggle img {
    width: 20px;
    height: 20px;
    filter: var(--logo-filter);
    transition: filter 0.3s ease;
}

.sun-icon {
    display: none;
}

.moon-icon {
    display: block;
}

[data-theme="dark"] .sun-icon {
    display: block;
}

[data-theme="dark"] .moon-icon {
    display: none;
}

/* === HERO SECTION === */
.hero-section {
    display: flex;
    align-items: center;
    min-height: 90vh;
    padding: 4rem 0;
    overflow: hidden;
}

.hero-split-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 5rem;
}

.hero-text-content p {
    font-size: 1.1rem;
    margin: 2rem 0;
    /* Adjusted margin */
}

.hero-image-container img {
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .hero-image-container img {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

/* GOOGLE RATING STYLES */
.hero-rating {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.star-icons {
    display: flex;
    gap: 0.1rem;
    color: #f59e0b;
    /* Amber 500 */
}

.star-icons svg {
    width: 24px;
    height: 24px;
}

.rating-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: underline;
    text-decoration-color: var(--accent-color);
}

.rating-text strong {
    color: var(--text-primary);
}


/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 0.8rem 1.75rem;
    border-radius: 50px;
    font-weight: 500;
    text-align: center;
    border: 1px solid var(--accent-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-color);
    box-shadow: var(--glow-shadow);
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    color: var(--bg-color);
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--glow-shadow-hover);
}

[data-theme="dark"] .btn-secondary:hover {
    color: #111827;
}


/* SLIDESHOW SECTION STYLES */
.slideshow-section {
    padding: 3rem 0;
    overflow-x: hidden;
    /* Prevents horizontal scroll on mobile */
}

.slideshow-title {
    color: var(--text-primary);
    text-align: center;
    font-weight: 600;
    margin-bottom: 2.5rem;
    font-size: 1.2rem;
    padding: 1em;
}

.slideshow-container {
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.slideshow-track {
    display: flex;
    gap: 4rem;
    align-items: center;
    width: max-content;
    /* Let content define width */
    will-change: transform;
    /* Animation is now handled by JavaScript */
}

.slideshow-track img {
    height: 40px;
    width: auto;
    filter: var(--logo-filter);
    opacity: 0.85;
    /* Increased contrast */
    transition: opacity 0.3s ease;
    user-select: none;
    /* Prevents dragging image instead of track */
}

/* Specific logos are now larger */
.slideshow-track img.logo-large {
    height: 100px;
}


/* === SECTIONS & CARDS === */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header p {
    max-width: 600px;
    margin: 0.5rem auto 0;
    font-size: 1.1rem;
}

.catalogue-section,
.services-section {
    padding: 6rem 0;
}

.catalogue-grid,
.services-grid {
    display: grid;
    gap: 2rem;
}

.catalogue-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.services-grid {
    grid-template-columns: 1fr 1fr;
}

.card,
.service-card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover,
.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-medium), var(--glow-shadow);
}

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

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    width: 315px;
    max-width: 315px;
}

.card-content h3 {
    margin-bottom: auto;
    padding-bottom: 1rem;
}

.card-link {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .3s ease, transform .3s ease;
}

.card:hover .card-link {
    opacity: 1;
    transform: translateY(0);
}


/* SERVICE CARD STYLES */
.service-card {
    padding: 0;
    text-align: left;
}

.service-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

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

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

.service-card h3,
.service-card p,
.learn-more {
    padding: 0 1.5rem;
}

.service-card h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.learn-more {
    font-weight: 600;
    margin-top: 1rem;
    padding-bottom: 1.5rem;
    display: inline-block;
}

.service-icon {
    display: none;
}


/* AFFILIATED LOGO STYLES (RELOCATED) */
.affiliated-logos-container {
    margin-top: 4rem;
    text-align: center;
}

.affiliated-logos {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
}

.affiliated-logos img {
    height: 200px;
    width: auto;
}

[data-theme="dark"] .affiliated-logos img {
    background-color: #fff;
    border-radius: 4px;
    padding: 4px;
}

/* === FINAL FOOTER STYLING === */
.main-footer {
    background-color: var(--surface-color);
    padding: 4rem 0 0 0;
    margin-top: 6rem;
    border-top: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

[data-theme="dark"] .main-footer {
    background-color: #111827;
}

.footer-main {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2em;
    padding-bottom: 3rem;
}

.footer-brand {
    max-width: 250px;
    text-align: left;
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.9rem;
    margin: 0;
}

.footer-links-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.footer-bottom-bar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    gap: 0.75rem;
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
}

.footer-socials a {
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.footer-socials a:hover {
    color: var(--accent-color);
    transform: scale(1.1) translateY(-2px);
}

.footer-socials svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.footer-copyright p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    text-align: center;
}

.footer-copyright .visitor-text {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* --- PREVIOUSLY ADDED STYLES FOR OTHER PAGES --- */
.page-main {
    padding: 3rem 0
}

.category-page-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 3rem;
    align-items: flex-start
}

/* ✨ UPDATED: Sticky Sidebar for Desktop (aligned in middle with padding) ✨ */
.category-sidebar {
    position: sticky;
    top: 110px;
    /* Ensures it starts below the header */
    bottom: 20px;
    /* Provides padding from the bottom of the viewport */
    max-height: calc(100vh - 130px);
    /* Limits height to viewport (110px header + 20px bottom padding) */
    overflow-y: auto;
    /* Adds scrollbar if content exceeds max-height */

    background-color: var(--surface-color);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    padding: 1.5rem;

    /* These flex properties center the *content* within the sidebar if its natural height is less than max-height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Centers items vertically */
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color)
}

.sidebar-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .5rem
}

.sidebar-nav a {
    display: block;
    padding: .6rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all .2s ease-in-out
}

.sidebar-nav a:hover {
    background-color: var(--bg-color);
    color: var(--accent-color-hover);
    transform: translateX(4px)
}

.sidebar-nav a.active {
    background-color: color-mix(in srgb, var(--accent-color) 10%, transparent);
    color: var(--accent-color);
    font-weight: 600;
    box-shadow: inset 2px 0 0 var(--accent-color)
}

.category-content {
    min-width: 0
}

.breadcrumbs {
    font-size: .9rem;
    margin-bottom: 2rem;
    color: var(--text-secondary)
}

.breadcrumbs a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color .3s ease
}

.breadcrumbs a:hover {
    color: var(--accent-color)
}

.breadcrumbs span {
    margin: 0 .5rem
}

.page-header {
    margin-bottom: 4rem;
    text-align: left
}

.page-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem
}

.page-description {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0;
    color: var(--text-secondary)
}

.product-list-section {
    margin-bottom: 4rem
}

.section-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    text-align: left
}

.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem
}

/* ✨ START: UPDATED PRODUCT LIST STYLES ✨ */
.product-list-item {
    display: flex;
    align-items: center;
    padding: 0;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: all .3s ease;
    overflow: hidden;
    /* Important for containing the image */
}

.product-list-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-medium)
}

.product-item-image {
    flex: 0 0 40%;
    align-self: stretch;
    /* Fills the card height */
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-list-item:hover .product-item-image img {
    transform: scale(1.05);
    /* Zoom effect on hover */
}

.product-item-content {
    flex: 1 1 60%;
    padding: 1.5rem;
}

.product-item-content h3 {
    font-size: 1.1rem;
    margin-bottom: .5rem;
}

.product-item-content p {
    font-size: .9rem;
    margin: 0;
}

.product-item-icon {
    display: none;
    /* Hide the old icon style */
}

/* ✨ END: UPDATED PRODUCT LIST STYLES ✨ */

.back-to-home-link {
    display: inline-block;
    margin-top: 3rem;
    padding: .75rem 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-weight: 500;
    transition: all .3s ease
}

.back-to-home-link:hover {
    border-color: var(--accent-color);
    background-color: var(--accent-color);
    color: var(--surface-color);
    box-shadow: var(--glow-shadow)
}

[data-theme=dark] .back-to-home-link:hover {
    color: #111827
}

.about-content-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem
}

.about-image-container img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium)
}

.about-text-content h2 {
    margin-bottom: 1rem;
    font-size: 2rem
}

.values-section {
    margin-bottom: 4rem
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem
}

.value-card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    text-align: center
}

.value-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1.5rem;
    color: var(--accent-color)
}

.contact-section {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 3rem;
    border-radius: var(--border-radius)
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: .5rem;
    text-align: center
}

.contact-info p {
    text-align: center
}

.contact-details-list {
    list-style: none;
    display: grid;
    /* ✨ UPDATED: Switched to a responsive two-column grid */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-details-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: var(--bg-color);
    padding: 1.25rem;
    border-radius: 8px;
    border: 1px solid var(--border-color)
}

.contact-icon {
    color: var(--accent-color);
    width: 28px;
    height: 28px;
    flex-shrink: 0
}

.contact-details-list strong {
    display: block;
    color: var(--text-primary);
    font-weight: 500
}

.contact-details-list a,
.contact-details-list span {
    font-size: .9rem
}

/* === RESPONSIVE STYLES === */
@media (max-width:992px) {
    .header-controls {
        gap: 0.5rem;
    }

    /* ✨ FIX: Show hamburger and hide logo text */
    .hamburger-btn {
        display: block;
    }

    /* ✨ FIX: Mobile navigation overlay styles */
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: var(--bg-color);
        display: flex;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        z-index: 1000;
        /* Higher z-index to cover content and header */
    }

    .main-nav ul {
        flex-direction: column;
        gap: 2rem;
    }

    .main-nav a {
        font-size: 1.5rem;
    }

    .mobile-nav-open .main-nav {
        transform: translateX(0);
    }

    .hero-section {
        min-height: auto;
        padding: 4rem 0;
    }

    .hero-split-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-rating {
        justify-content: center;
    }

    .hero-text-content {
        order: 2;
    }

    .hero-image-container {
        order: 1;
    }

    h1 {
        font-size: 2.8rem;
    }

    .category-page-layout {
        grid-template-columns: 1fr
    }

    /* ✨ UPDATED: Sidebar becomes static on mobile ✨ */
    .category-sidebar {
        position: static;
        top: auto;
        /* Override sticky positioning */
        bottom: auto;
        /* Override sticky positioning */
        max-height: none;
        /* Remove max-height constraint */
        overflow-y: visible;
        /* Allow content to flow naturally */
        margin-bottom: 2rem;
        /* Add some space below on mobile */
        /* Remove flexbox centering for mobile if it's not desired when static */
        display: block;
        /* Revert to default block display */
    }

    .page-header,
    .section-title {
        text-align: center
    }

    .page-description {
        margin: 0 auto
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    /* ✨ FIX: Stack hero rating on small screens */
    .hero-rating {
        flex-direction: column;
        gap: 0.5rem;
    }

    .catalogue-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-links-grid {
        justify-content: center;
        gap: 2rem;
        width: 100%;
    }

    .product-list {
        grid-template-columns: 1fr
    }

    .affiliated-logos img {
        height: 120px;
    }
}


/* === RESPONSIVE STYLES - MOBILE FIXES === */
@media (max-width: 992px) {
    .container {
        padding: 0 1rem;
        /* Reduced padding to prevent overflow */
    }

    .header-controls {
        gap: 0.5rem;
    }

    /* ✨ HAMBURGER MENU FIXES ✨ */
    .hamburger-btn {
        display: block;
        position: relative;
        /* Changed from absolute positioning issues */
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
        z-index: 1002;
        /* Higher than mobile nav */
        width: 40px;
        height: 40px;
        margin-right: 0.5rem;
        order: -1;
        /* Ensures it appears first in flexbox */
    }

    .hamburger-btn .line {
        width: 24px;
        height: 2px;
        background-color: var(--text-primary);
        display: block;
        margin: 4px auto;
        transition: all 0.3s ease-in-out;
        transform-origin: center;
    }

    /* Hamburger animation when menu is open */
    .mobile-nav-open .hamburger-btn .line1 {
        transform: translateY(6px) rotate(45deg);
    }

    .mobile-nav-open .hamburger-btn .line2 {
        opacity: 0;
    }

    .mobile-nav-open .hamburger-btn .line3 {
        transform: translateY(-6px) rotate(-45deg);
    }

    .logo {
        font-size: 1.1rem;
    }

    .logo img {
        height: 28px;
    }

    /* ✨ MOBILE NAVIGATION OVERLAY FIXES ✨ */
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(var(--bg-color-rgb, 249, 250, 251), 0.98);
        backdrop-filter: blur(20px);
        display: flex;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        z-index: 1001;
        overflow: hidden;
    }

    [data-theme="dark"] .main-nav {
        background-color: rgba(17, 24, 39, 0.98);
    }

    .main-nav ul {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .main-nav a {
        font-size: 1.8rem;
        font-weight: 600;
        padding: 1rem 2rem;
        border-radius: 12px;
        transition: all 0.3s ease;
    }

    .main-nav a:hover {
        background-color: var(--accent-color);
        color: white;
        transform: scale(1.05);
    }

    /* Show mobile navigation when open */
    .mobile-nav-open .main-nav {
        transform: translateX(0);
    }

    /* Prevent body scroll when mobile menu is open */
    .mobile-nav-open {
        overflow: hidden;
        height: 100vh;
    }

    /* ✨ HEADER LAYOUT FIXES ✨ */
    .main-header .container {
        display: flex;
        align-items: center;
        position: relative;
    }

    .header-controls {
        margin-left: auto;
        display: flex;
        align-items: center;
    }

    /* Theme toggle adjustments */
    .theme-toggle {
        width: 36px;
        height: 36px;
    }

    .theme-toggle img {
        width: 18px;
        height: 18px;
    }

    /* ✨ HERO SECTION MOBILE FIXES ✨ */
    .hero-section {
        min-height: auto;
        padding: 3rem 0 4rem 0;
        overflow-x: hidden;
        /* Prevent horizontal scroll */
    }

    .hero-split-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .hero-text-content {
        order: 2;
    }

    .hero-image-container {
        order: 1;
    }

    .hero-rating {
        justify-content: center;
        margin-bottom: 2rem;
    }

    h1 {
        font-size: 2.2rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }

    .hero-text-content p {
        font-size: 1rem;
        margin: 1.5rem 0;
    }

    /* ✨ SLIDESHOW MOBILE FIXES ✨ */
    .slideshow-section {
        padding: 2rem 0;
        overflow-x: hidden;
    }

    .slideshow-container {
        margin: 0 -1rem;
        /* Extend beyond container padding */
        -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
        mask-image: linear-image(to right, transparent, black 10%, black 90%, transparent);
    }

    .slideshow-track {
        gap: 2rem;
        /* Reduced gap on mobile */
    }

    .slideshow-track img {
        height: 32px;
        /* Smaller logos on mobile */
    }

    .slideshow-track img.logo-large {
        height: 80px;
        /* Reduced large logo size */
    }

    /* ✨ CARDS AND GRIDS MOBILE FIXES ✨ */
    .catalogue-grid,
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .card,
    .service-card {
        margin: 0 auto;
        max-width: 400px;
        /* Prevent cards from becoming too wide */
    }

    /* ✨ SECTION SPACING MOBILE ✨ */
    .catalogue-section,
    .services-section {
        padding: 4rem 0;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    /* ✨ FOOTER MOBILE FIXES ✨ */
    .footer-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }

    .footer-links-grid {
        justify-content: center;
        gap: 2rem;
        width: 100%;
        max-width: 300px;
    }

    .footer-col {
        text-align: center;
    }

    .footer-bottom-bar {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ✨ EXTRA SMALL MOBILE DEVICES ✨ */
@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }

    h1 {
        font-size: 1.9rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .hero-rating {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    .star-icons {
        justify-content: center;
    }

    .main-nav a {
        font-size: 1.5rem;
        padding: 0.75rem 1.5rem;
    }

    .hamburger-btn {
        width: 36px;
        height: 36px;
        margin-right: 0.25rem;
    }

    .hamburger-btn .line {
        width: 20px;
    }

    .theme-toggle {
        width: 32px;
        height: 32px;
    }

    .theme-toggle img {
        width: 16px;
        height: 16px;
    }

    .slideshow-track img {
        height: 28px;
    }

    .slideshow-track img.logo-large {
        height: 70px;
    }

    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }

    .affiliated-logos img {
        height: 100px;
    }
}

/* ✨ CSS VARIABLES FOR RGB VALUES (for backdrop-filter backgrounds) ✨ */
:root {
    --bg-color-rgb: 249, 250, 251;
}

[data-theme="dark"] {
    --bg-color-rgb: 17, 24, 39;
}

/* ✨ PREVENT HORIZONTAL OVERFLOW GLOBALLY ✨ */
html,
body {
    overflow-x: hidden;
    max-width: 100vw;
}

* {
    box-sizing: border-box;
}

/* ✨ ENSURE IMAGES DON'T CAUSE OVERFLOW ✨ */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ✨ SMOOTH TRANSITIONS FOR THEME CHANGES ✨ */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}



/* ✨ START: Featured Digital Services Section ✨ */
.featured-service-section {
    padding: 6rem 0;
    background-color: var(--surface-color);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-top: 1rem;
}

[data-theme="dark"] .featured-service-section {
    background-color: #111827;
    /* Match the footer background for consistency */
}

.featured-service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.featured-service-image img {
    border-radius: var(--border-radius);
    transform: scale(1.05);
    transition: all 0.4s ease;
    box-shadow:
        0 6px 15px rgba(0, 0, 0, 0.2),
        /* depth */
        0 0 20px rgba(255, 127, 80, 0.5),
        /* coral soft glow */
        0 0 40px rgba(255, 127, 80, 0.3);
    /* coral spread */
}

.featured-service-image:hover img {
    transform: scale(1.12);
    /* little scale up */
    box-shadow:
        0 12px 25px rgba(0, 0, 0, 0.25),
        /* deeper shadow */
        0 0 30px rgba(255, 127, 80, 0.7),
        /* stronger coral glow */
        0 0 60px rgba(255, 127, 80, 0.5),
        /* wider coral spread */
        0 0 90px rgba(255, 127, 80, 0.3);
    /* dreamy outer glow */
}



.featured-service-content h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.featured-service-content p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* ✨ END: Featured Digital Services Section ✨ */

@media (max-width: 992px) {
    /* ... (all your other 992px styles) ... */

    /* ✨ Featured Section Responsive ✨ */
    .featured-service-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .featured-service-image {
        order: -1;
        /* Puts image on top on mobile */
    }

    .featured-service-content h3 {
        font-size: 1.5rem;
    }
}

/* === RESPONSIVE STYLES === */
@media (max-width: 992px) {
    /* ... (other existing 992px styles) ... */

    /* ✨ About Page Mobile Fixes ✨ */
    .about-content-section {
        grid-template-columns: 1fr;
        /* Stack columns */
        gap: 2.5rem;
        /* Adjusted gap */
        text-align: center;
        /* Center content */
    }

    .about-image-container {
        order: -1;
        /* Image first on mobile */
    }

    .about-text-content h2 {
        font-size: 1.8rem;
        /* Adjusted font size for mobile */
    }

    /* ✨ Contact Page Mobile Fixes ✨ */
    .contact-section {
        padding: 2.5rem 1rem;
        /* Adjust padding for mobile */
        max-width: none;
        /* Remove max-width for better use of mobile screen width */
    }

    .contact-info h3,
    .contact-info p {
        text-align: center;
        /* Ensure text is centered on mobile */
    }

    .contact-details-list {
        grid-template-columns: 1fr;
        /* Force single column on mobile */
        gap: 1.5rem;
        /* Adjust gap */
    }

    .contact-details-list li {
        flex-direction: column;
        /* Stack icon and text */
        align-items: center;
        /* Center content within list item */
        text-align: center;
        /* Center text within list item */
        padding: 1.25rem 1rem;
        /* Adjust padding, slightly more horizontal for text */
    }

    .contact-details-list strong {
        margin-bottom: 0.25rem;
        /* Space between strong and span */
        display: block;
        /* Ensure it takes full width when stacked */
    }

    .contact-details-list a,
    .contact-details-list span {
        display: block;
        /* Ensure they break lines and center properly */
    }

    /* General page header alignment for mobile */
    .page-header {
        text-align: center;
    }

    .page-description {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    /* ... (other existing 768px styles) ... */

    /* Further refine About Section for smaller mobiles if needed */
    .about-text-content h2 {
        font-size: 1.6rem;
    }

    /* Further refine Contact Section for smaller mobiles if needed */
    .contact-details-list li {
        padding: 1rem 0.75rem;
        /* Adjust list item padding for small screens */
    }
}

/* ✨ EXTRA SMALL MOBILE DEVICES ✨ */
@media (max-width: 480px) {
    /* ... (other existing 480px styles) ... */

    /* Further refine About and Contact for extra small screens */
    .about-text-content h2 {
        font-size: 1.6rem;
        /* Keep consistent with general h2 */
    }

    .page-title {
        font-size: 2.2rem;
        /* Ensure page title is not too small */
    }

    .page-description {
        font-size: 0.9rem;
        /* Slightly smaller description */
    }

    .contact-section {
        padding: 2rem 0.75rem;
        /* Even less padding for very small screens */
    }
}

/* ✨ CSS VARIABLES FOR RGB VALUES (for backdrop-filter backgrounds) ✨ */
:root {
    --bg-color-rgb: 249, 250, 251;
}

[data-theme="dark"] {
    --bg-color-rgb: 17, 24, 39;
}

/* ✨ PREVENT HORIZONTAL OVERFLOW GLOBALLY ✨ */
html,
body {
    overflow-x: hidden;
    max-width: 100vw;
}

* {
    box-sizing: border-box;
}

/* ✨ ENSURE IMAGES DON'T CAUSE OVERFLOW ✨ */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ✨ SMOOTH TRANSITIONS FOR THEME CHANGES ✨ */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}



/* ✨ START: Featured Digital Services Section ✨ */
.featured-service-section {
    padding: 6rem 0;
    background-color: var(--surface-color);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-top: 1rem;
}

[data-theme="dark"] .featured-service-section {
    background-color: #111827;
    /* Match the footer background for consistency */
}

.featured-service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.featured-service-image img {
    border-radius: var(--border-radius);
    transform: scale(1.05);
    transition: all 0.4s ease;
    box-shadow:
        0 6px 15px rgba(0, 0, 0, 0.2),
        /* depth */
        0 0 20px rgba(255, 127, 80, 0.5),
        /* coral soft glow */
        0 0 40px rgba(255, 127, 80, 0.3);
    /* coral spread */
}

.featured-service-image:hover img {
    transform: scale(1.12);
    /* little scale up */
    box-shadow:
        0 12px 25px rgba(0, 0, 0, 0.25),
        /* deeper shadow */
        0 0 30px rgba(255, 127, 80, 0.7),
        /* stronger coral glow */
        0 0 60px rgba(255, 127, 80, 0.5),
        /* wider coral spread */
        0 0 90px rgba(255, 127, 80, 0.3);
    /* dreamy outer glow */
}



.featured-service-content h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.featured-service-content p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* ✨ END: Featured Digital Services Section ✨ */

@media (max-width: 992px) {
    /* ... (all your other 992px styles) ... */

    /* ✨ Featured Section Responsive ✨ */
    .featured-service-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .featured-service-image {
        order: -1;
        /* Puts image on top on mobile */
    }

    .featured-service-content h3 {
        font-size: 1.5rem;
    }
}