/**
* Template Name: Dewi
* Template URL: https://bootstrapmade.com/dewi-free-multi-purpose-html-template/
* Updated: Aug 07 2024 with Bootstrap v5.3.3
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
*/

/*--------------------------------------------------------------
# TABLE OF CONTENTS
# 1.0  Variables
#   1.1  Fonts
#   1.2  Global Colors
#   1.3  Navigation Menu Colors
#   1.4  Color Presets
# 2.0  General & Global Styles
#   2.1  General Styling
#   2.2  Shared Classes & Utilities
# 3.0  Main Layout Structure
#   3.1  Header
#   3.2  Navigation Menu
#   3.3  Footer
# 4.0  Page Sections
#   4.1  Preloader
#   4.2  Hero Section
#   4.3  About Section
#   4.4  Stats Section
#   4.5  Services Section
#   4.6  Clients Section
#   4.7  Features Section
#   4.8  Services 2 Section
#   4.9  Testimonials Section
#   4.10 Portfolio Section
#   4.11 Team Section
#   4.12 Contact Section
# 5.0  Inner Pages & Details Sections
#   5.1  Global Page Titles & Breadcrumbs
#   5.2  Portfolio, Service, Starter Details
# 6.0  Components
#   6.1  Cookie Banner
#   6.2  Floating Action Buttons (Scroll Top, Chat, Test)
#   6.3  Chatbot
# 7.0  Responsive Design Adjustments
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# 1.0 Variables
--------------------------------------------------------------*/

/* # 1.1 Fonts 
 # Help: https://bootstrapmade.com/color-system/
*/
:root {
    --default-font: "Roboto", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --heading-font: "Raleway", sans-serif;
    --nav-font: "Inter", sans-serif;
}

/* # 1.2 Global Colors 
 # These color variables are used throughout the website. 
 # Updating them here will change the color scheme of the entire website.
*/
:root {
    --background-color: #ffffff; /* Background color for the entire website, including individual sections */
    --default-color: #444444; /* Default color used for the majority of the text content across the entire website */
    --heading-color: #273d4e; /* Color for headings, subheadings and title throughout the website */
    --accent-color: #f39c12; /* Accent color that represents your brand on the website. It's used for buttons, links, and other elements that need to stand out */
    --surface-color: #ffffff; /* The surface color is used as a background of boxed elements within sections, such as cards, icon boxes, or other elements that require a visual separation from the global background. */
    --contrast-color: #ffffff; /* Contrast color for text, ensuring readability against backgrounds of accent, heading, or default colors. */
}

/* # 1.3 Navigation Menu Colors 
 # These color variables are used specifically for the navigation menu. 
 # They are separate from the global colors to allow for more customization options.
*/
:root {
    --nav-color: black; /* The default color of the main navmenu links */
    --nav-hover-color: #f39c12; /* Applied to main navmenu links when they are hovered over or active */
    --nav-mobile-background-color: #ffffff; /* Used as the background color for mobile navigation menu */
    --nav-dropdown-background-color: #ffffff; /* Used as the background color for dropdown items that appear when hovering over primary navigation items */
    --nav-dropdown-color: #444444; /* Used for navigation links of the dropdown items in the navigation menu. */
    --nav-dropdown-hover-color: #f39c12; /* Similar to --nav-hover-color, this color is applied to dropdown navigation links when they are hovered over. */
}

/* # 1.4 Color Presets 
 # These classes override global colors when applied to any section or element,
 # providing reuse of the same color scheme.
*/
.light-background {
    --background-color: #f1f4fa;
    --surface-color: #ffffff;
}

.dark-background {
    --background-color: #000910;
    --default-color: #ffffff;
    --heading-color: #ffffff;
    --surface-color: #28323a;
    --contrast-color: #ffffff;
}

/*--------------------------------------------------------------
# 2.0 General & Global Styles
--------------------------------------------------------------*/

/* # 2.1 General Styling */
/* Smooth scroll */
:root {
    scroll-behavior: smooth;
}

body {
    color: var(--default-color);
    background-color: var(--background-color); /* Maintains a fallback color */
    font-family: var(--default-font);
    background-image: url('../img/texture2.jpg'); /* Added: path to the texture */
    background-attachment: fixed; /* Added: the texture remains fixed on scroll */
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: 0.3s;
}

    a:hover {
        color: color-mix(in srgb, var(--accent-color), transparent 25%);
        text-decoration: none;
    }

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--heading-color);
    font-family: var(--heading-font);
}

/* # 2.2 Shared Classes & Utilities */

/* Sections & Section Titles */
section,
.section {
    color: var(--default-color);
    background-color: transparent; /* Modified: makes the background transparent */
    padding: 60px 0;
    scroll-margin-top: 90px;
    overflow: clip;
}

.section-title {
    padding-bottom: 30px;
    position: relative;
}

    .section-title h2 {
        font-size: 14px;
        font-weight: 500;
        padding: 0;
        line-height: 1px;
        margin: 0;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        color: color-mix(in srgb, var(--default-color), transparent 50%);
        position: relative;
    }

        .section-title h2::after {
            content: "";
            width: 120px;
            height: 1px;
            display: inline-block;
            background: var(--accent-color);
            margin: 4px 10px;
        }

    .section-title p {
        color: var(--heading-color);
        margin: 0;
        font-size: 36px;
        font-weight: 800;
        text-transform: uppercase;
        font-family: var(--heading-font);
    }

/* PHP Email Form Messages */
.php-email-form .error-message {
    display: none;
    background: #df1529;
    color: #ffffff;
    text-align: left;
    padding: 15px;
    margin-bottom: 24px;
    font-weight: 600;
}

.php-email-form .sent-message {
    display: none;
    color: #ffffff;
    background: #059652;
    text-align: center;
    padding: 15px;
    margin-bottom: 24px;
    font-weight: 600;
}

.php-email-form .loading {
    display: none;
    background: var(--surface-color);
    text-align: center;
    padding: 15px;
    margin-bottom: 24px;
}

    .php-email-form .loading:before {
        content: "";
        display: inline-block;
        border-radius: 50%;
        width: 24px;
        height: 24px;
        margin: 0 10px -6px 0;
        border: 3px solid var(--accent-color);
        border-top-color: var(--surface-color);
        animation: php-email-form-loading 1s linear infinite;
    }

@keyframes php-email-form-loading {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Pulsating Play Button */
.pulsating-play-btn {
    width: 94px;
    height: 94px;
    background: radial-gradient(var(--accent-color) 50%, color-mix(in srgb, var(--accent-color), transparent 75%) 52%);
    border-radius: 50%;
    display: block;
    position: relative;
    overflow: hidden;
}

    .pulsating-play-btn:before {
        content: "";
        position: absolute;
        width: 120px;
        height: 120px;
        animation-delay: 0s;
        animation: pulsate-play-btn 2s;
        animation-direction: forwards;
        animation-iteration-count: infinite;
        animation-timing-function: steps;
        opacity: 1;
        border-radius: 50%;
        border: 5px solid color-mix(in srgb, var(--accent-color), transparent 30%);
        top: -15%;
        left: -15%;
        background: rgba(198, 16, 0, 0);
    }

    .pulsating-play-btn:after {
        content: "";
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translateX(-40%) translateY(-50%);
        width: 0;
        height: 0;
        border-top: 10px solid transparent;
        border-bottom: 10px solid transparent;
        border-left: 15px solid #fff;
        z-index: 100;
        transition: all 400ms cubic-bezier(0.55, 0.055, 0.675, 0.19);
    }

    .pulsating-play-btn:hover:before {
        content: "";
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translateX(-40%) translateY(-50%);
        width: 0;
        height: 0;
        border: none;
        border-top: 10px solid transparent;
        border-bottom: 10px solid transparent;
        border-left: 15px solid #fff;
        z-index: 200;
        animation: none;
        border-radius: 0;
    }

    .pulsating-play-btn:hover:after {
        border-left: 15px solid var(--accent-color);
        transform: scale(20);
    }

@keyframes pulsate-play-btn {
    0% {
        transform: scale(0.6, 0.6);
        opacity: 1;
    }

    100% {
        transform: scale(1, 1);
        opacity: 0;
    }
}

/*--------------------------------------------------------------
# 3.0 Main Layout Structure
--------------------------------------------------------------*/

/* # 3.1 Header */
.header {
    --background-color: rgba(0, 0, 0, 0);
    --default-color: #ffffff;
    --heading-color: #ffffff;
    color: var(--default-color);
    background-color: var(--background-color);
    padding: 20px 0;
    transition: all 0.5s;
    z-index: 997;
}

    .header .logo {
        line-height: 1;
    }

        .header .logo .logo-svg { /* New rule added for the SVG */
            max-width: 100%; /* Ensures it does not exceed the width of its container */
            height: auto; /* Maintains the aspect ratio */
            display: block; /* Removes extra space below the SVG */
            /* You might want to adjust its height based on the overall header height */
            max-height: 95px; /* Example: limit the height for desktop */
        }

            /* Adjustments for text and circles inside the SVG for responsiveness */
            .header .logo .logo-svg text {
                /* Set the font size relative to the current scaling of the SVG */
                /* Adjust these values if necessary for visual balance */
                font-size: 32px; /* Base font size */
            }

            .header .logo .logo-svg circle {
                /* Adjust the radius or positions of the circles if needed for smaller scales */
                /* These values are relative to the viewBox, so they should scale automatically */
            }

        .header .logo img { /* This rule for img can be removed if you only use the SVG */
            max-height: 60px;
            margin-right: 8px;
            padding-bottom: 2px;
            background: linear-gradient(45deg, rgba(255,255,255,0.2), transparent);
            border-radius: 4px;
            padding: 3px;
        }

        .header .logo h1 {
            font-size: 30px;
            margin: 0;
            font-weight: 700;
            color: var(--heading-color);
        }

    .header .cta-btn,
    .header .cta-btn:focus {
        color: #000; /* Modified: black text color */
        font-size: 13px;
        padding: 7px 25px;
        margin: 0 0 0 30px;
        border-radius: 4px;
        transition: 0.3s;
        text-transform: uppercase;
        border: 2px solid #000; /* Modified: black border color */
    }

        .header .cta-btn:hover,
        .header .cta-btn:focus:hover {
            color: var(--contrast-color);
            background: var(--accent-color);
            border-color: var(--accent-color);
        }

.scrolled .header {
    /* Set a semi-transparent white background */
    --background-color: rgba(255, 255, 255, 0.9);
    /* Update text and link colors to dark for readability */
    --default-color: #444444;
    --heading-color: #273d4e;
    --nav-color: #444444;
    --nav-hover-color: #f39c12; /* Keep the orange accent on hover */
    box-shadow: 0px 0 18px rgba(0, 0, 0, 0.1);
}

/* # 3.2 Navigation Menu */
/* Desktop Navigation */
@media (min-width: 1200px) {
    .navmenu {
        padding: 0;
    }

        .navmenu ul {
            margin: 0;
            padding: 0;
            display: flex;
            list-style: none;
            align-items: center;
        }

        .navmenu li {
            position: relative;
        }

        .navmenu > ul > li {
            white-space: nowrap;
            padding: 15px 14px;
        }

            .navmenu > ul > li:last-child {
                padding-right: 0;
            }

        .navmenu a,
        .navmenu a:focus {
            color: var(--nav-color);
            font-size: 13px;
            padding: 0 2px;
            font-family: var(--nav-font);
            font-weight: 500;
            display: flex;
            align-items: center;
            justify-content: space-between;
            white-space: nowrap;
            transition: 0.3s;
            position: relative;
            text-transform: uppercase;
        }

            .navmenu a i,
            .navmenu a:focus i {
                font-size: 12px;
                line-height: 0;
                margin-left: 5px;
                transition: 0.3s;
            }

        .navmenu > ul > li > a:before {
            content: "";
            position: absolute;
            height: 2px;
            bottom: -6px;
            left: 0;
            background-color: var(--nav-hover-color);
            visibility: hidden;
            width: 0px;
            transition: all 0.3s ease-in-out 0s;
        }

        .navmenu a:hover:before,
        .navmenu li:hover > a:before,
        .navmenu .active:before {
            visibility: visible;
            width: 100%;
        }

        .navmenu li:hover > a,
        .navmenu .active,
        .navmenu .active:focus {
            color: color-mix(in srgb, var(--nav-color) 90%, white 15%);
        }

        /* Custom styles for the Play link */
        .navmenu > ul > li > .play-link:before {
            background-color: #9c00d6; /* Underline color */
        }

        .navmenu li:hover > .play-link:before,
        .navmenu .play-link.active:before {
            visibility: visible;
            width: 100%;
        }

        .navmenu li:hover > .play-link,
        .navmenu .play-link.active {
            /* The image will handle the visual representation */
        }

        .navmenu .play-link img {
            height: 16px; /* Match font-size of other menu items */
            width: auto; /* Ensure aspect ratio is maintained */
            vertical-align: middle;
        }

        .navmenu .dropdown ul {
            margin: 0;
            padding: 10px 0;
            background: var(--nav-dropdown-background-color);
            display: block;
            position: absolute;
            visibility: hidden;
            left: 14px;
            top: 130%;
            opacity: 0;
            transition: 0.3s;
            border-radius: 4px;
            z-index: 99;
            box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
        }

            .navmenu .dropdown ul li {
                min-width: 200px;
            }

            .navmenu .dropdown ul a {
                padding: 10px 20px;
                font-size: 15px;
                text-transform: none;
                color: var(--nav-dropdown-color);
            }

                .navmenu .dropdown ul a i {
                    font-size: 12px;
                }

                .navmenu .dropdown ul a:hover,
                .navmenu .dropdown ul .active:hover,
                .navmenu .dropdown ul li:hover > a {
                    color: var(--nav-dropdown-hover-color);
                }

        .navmenu .dropdown:hover > ul {
            opacity: 1;
            top: 100%;
            visibility: visible;
        }

        .navmenu .dropdown .dropdown ul {
            top: 0;
            left: -90%;
            visibility: hidden;
        }

        .navmenu .dropdown .dropdown:hover > ul {
            opacity: 1;
            top: 0;
            left: -100%;
            visibility: visible;
        }
}

/* Mobile Navigation */
@media (max-width: 1199px) {
    .mobile-nav-toggle {
        color: var(--nav-color);
        font-size: 28px;
        line-height: 0;
        margin-right: 10px;
        cursor: pointer;
        transition: color 0.3s;
    }

    .navmenu {
        padding: 0;
        z-index: 9997;
    }

        .navmenu ul {
            display: none;
            list-style: none;
            position: absolute;
            inset: 60px 20px 20px 20px;
            padding: 10px 0;
            margin: 0;
            border-radius: 6px;
            background-color: var(--nav-mobile-background-color);
            border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
            box-shadow: none;
            overflow-y: auto;
            transition: 0.3s;
            z-index: 9998;
        }

        .navmenu a,
        .navmenu a:focus {
            color: var(--nav-dropdown-color);
            padding: 10px 20px;
            font-family: var(--nav-font);
            font-size: 17px;
            font-weight: 500;
            display: flex;
            align-items: center;
            justify-content: space-between;
            white-space: nowrap;
            transition: 0.3s;
        }

            .navmenu a i,
            .navmenu a:focus i {
                font-size: 12px;
                line-height: 0;
                margin-left: 5px;
                width: 30px;
                height: 30px;
                display: flex;
                align-items: center;
                justify-content: center;
                border-radius: 50%;
                transition: 0.3s;
                background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
            }

                .navmenu a i:hover,
                .navmenu a:focus i:hover {
                    background-color: var(--accent-color);
                    color: var(--contrast-color);
                }

            .navmenu a:hover,
            .navmenu .active,
            .navmenu .active:focus {
                color: var(--nav-dropdown-hover-color);
            }

                .navmenu .active i,
                .navmenu .active:focus i {
                    background-color: var(--accent-color);
                    color: var(--contrast-color);
                    transform: rotate(180deg);
                }

        .navmenu .dropdown ul {
            position: static;
            display: none;
            z-index: 99;
            padding: 10px 0;
            margin: 10px 20px;
            background-color: var(--nav-dropdown-background-color);
            transition: all 0.5s ease-in-out;
        }

            .navmenu .dropdown ul ul {
                background-color: rgba(33, 37, 41, 0.1);
            }

        .navmenu .dropdown > .dropdown-active {
            display: block;
            background-color: rgba(33, 37, 41, 0.03);
        }

    .mobile-nav-active {
        overflow: hidden;
    }

        .mobile-nav-active .mobile-nav-toggle {
            color: #fff;
            position: absolute;
            font-size: 32px;
            top: 15px;
            right: 15px;
            margin-right: 0;
            z-index: 9999;
        }

        .mobile-nav-active .navmenu {
            position: fixed;
            overflow: hidden;
            inset: 0;
            background: rgba(33, 37, 41, 0.8);
            transition: 0.3s;
        }

            .mobile-nav-active .navmenu > ul {
                display: block;
            }
}

/* # 3.3 Footer */
.footer {
    color: var(--default-color);
    background-color: var(--background-color);
    font-size: 14px;
    position: relative;
}

    .footer .footer-top {
        padding-top: 50px;
        border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
    }

    .footer .footer-about .logo {
        line-height: 1;
        margin-bottom: 10px;
    }

        .footer .footer-about .logo img {
            max-height: 40px;
            margin-right: 6px;
        }

        .footer .footer-about .logo span {
            font-size: 26px;
            font-weight: 700;
            letter-spacing: 1px;
            font-family: var(--heading-font);
            color: var(--heading-color);
        }

    .footer .footer-about p {
        font-size: 14px;
        font-family: var(--heading-font);
    }

    .footer .social-links a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: 1px solid color-mix(in srgb, var(--default-color), transparent 50%);
        font-size: 16px;
        color: color-mix(in srgb, var(--default-color), transparent 30%);
        margin-right: 10px;
        transition: 0.3s;
    }

        .footer .social-links a:hover {
            color: var(--accent-color);
            border-color: var(--accent-color);
        }

    .footer h4 {
        font-size: 16px;
        font-weight: bold;
        position: relative;
        padding-bottom: 12px;
    }

    .footer .footer-links {
        margin-bottom: 30px;
    }

        .footer .footer-links ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

            .footer .footer-links ul i {
                padding-right: 3px;
                font-size: 13px;
                line-height: 0;
                color: var(--accent-color);
            }

            .footer .footer-links ul li {
                padding: 10px 0;
                display: flex;
                align-items: center;
            }

                .footer .footer-links ul li:first-child {
                    padding-top: 0;
                }

            .footer .footer-links ul a {
                color: color-mix(in srgb, var(--default-color), transparent 30%);
                display: inline-block;
                line-height: 1;
            }

                .footer .footer-links ul a:hover {
                    color: var(--accent-color);
                }

    .footer .footer-contact p {
        margin-bottom: 5px;
    }

    .footer .footer-newsletter .newsletter-form {
        margin-top: 30px;
        margin-bottom: 15px;
        padding: 6px 8px;
        position: relative;
        border-radius: 4px;
        border: 1px solid color-mix(in srgb, var(--default-color), transparent 80%);
        display: flex;
        background-color: var(--background-color);
        transition: 0.3s;
    }

        .footer .footer-newsletter .newsletter-form:focus-within {
            border-color: var(--accent-color);
        }

        .footer .footer-newsletter .newsletter-form input[type=email] {
            border: 0;
            padding: 4px;
            width: 100%;
            background-color: var(--background-color);
            color: var(--default-color);
        }

            .footer .footer-newsletter .newsletter-form input[type=email]:focus-visible {
                outline: none;
            }

        .footer .footer-newsletter .newsletter-form input[type=submit] {
            border: 0;
            font-size: 16px;
            padding: 0 20px;
            margin: -7px -8px -7px 0;
            background: var(--accent-color);
            color: var(--contrast-color);
            transition: 0.3s;
            border-radius: 0 4px 4px 0;
        }

            .footer .footer-newsletter .newsletter-form input[type=submit]:hover {
                background: color-mix(in srgb, var(--accent-color), transparent 20%);
            }

    .footer .copyright {
        padding: 25px 0;
        border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
    }

        .footer .copyright p {
            margin-bottom: 0;
        }

    .footer .credits {
        margin-top: 6px;
        font-size: 13px;
    }

/*--------------------------------------------------------------
# 4.0 Page Sections
--------------------------------------------------------------*/

/* # 4.1 Preloader */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 999999;
    overflow: hidden;
    background: var(--background-color);
    transition: all 0.6s ease-out;
}

    #preloader:before {
        content: "";
        position: fixed;
        top: calc(50% - 30px);
        left: calc(50% - 30px);
        border: 6px solid #ffffff;
        border-color: var(--accent-color) transparent var(--accent-color) transparent;
        border-radius: 50%;
        width: 60px;
        height: 60px;
        animation: animate-preloader 1.5s linear infinite;
    }

@keyframes animate-preloader {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* # 4.2 Hero Section */
.hero {
    width: 100%;
    min-height: 100vh;
    position: relative;
    padding: 80px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .hero img {
        position: absolute;
        inset: 0;
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 1;
    }

    .hero:before {
        content: "";
        background: color-mix(in srgb, var(--background-color), transparent 100%);
        position: absolute;
        inset: 0;
        z-index: 2;
    }

    .hero .container {
        position: relative;
        z-index: 3;
    }

    .hero h2 {
        margin: 0;
        font-size: 48px;
        font-weight: 700;
        text-transform: uppercase;
        color: var(--heading-color) !important; /* <-- ADD !important HERE */
    }
    
    .hero h1,
    .hero .hero-title {
        margin: 0;
        font-size: 2.5rem;
        font-weight: 700;
        text-align: center;
        color: var(--heading-color) !important;
    }

    .hero p {
        color: var(--default-color) !important; /* <-- ADD !important HERE */
        margin: 10px 0 0 0;
        font-size: 24px;
    }



    .hero .btn-get-started {
        background: var(--accent-color);
        color: var(--contrast-color);
        font-weight: 400;
        font-size: 14px;
        letter-spacing: 1px;
        display: inline-block;
        padding: 10px 30px;
        border-radius: 4px;
        transition: 0.3s;
        text-transform: uppercase;
    }

        .hero .btn-get-started:hover {
            background: color-mix(in srgb, var(--accent-color), transparent 20%);
        }

    .hero .btn-watch-video {
        font-size: 16px;
        transition: 0.5s;
        margin-left: 25px;
        font-weight: 400;
        color: var(--default-color);
    }

        .hero .btn-watch-video i {
            color: var(--accent-color);
            font-size: 32px;
            transition: 0.3s;
            line-height: 0;
            margin-right: 8px;
        }

        .hero .btn-watch-video:hover {
            color: var(--accent-color);
        }

            .hero .btn-watch-video:hover i {
                color: color-mix(in srgb, var(--accent-color), transparent 20%);
            }

/* # 4.3 About Section */
.about h3 {
    font-weight: 700;
    font-size: 28px;
    margin-bottom: 20px;
}

.about .fst-italic {
    color: color-mix(in srgb, var(--default-color), var(--contrast-color) 50%);
}

.about .accent {
    color: var(--accent-color);
}


.about .content ul {
    list-style: none;
    padding: 0;
}

    .about .content ul li {
        padding: 0 0 10px 30px;
        position: relative;
    }

    .about .content ul i {
        position: absolute;
        font-size: 16px;
        left: 0;
        top: -3px;
        color: var(--accent-color);
    }

.about .content p:last-child {
    margin-bottom: 0;
}

.about .pulsating-play-btn {
    position: absolute;
    left: calc(50% - 47px);
    top: calc(50% - 47px);
}

/* For the text "Here are the first 5 steps..." */
.about .content p.accent {
    font-size: 20px; /* <- MODIFY THIS SIZE */
}

/* For the text of the bullet points (the steps) */
.about .content ul li span {
    font-size: 20px; /* <- MODIFY THIS SIZE */
}

/* # 4.4 Stats Section */
.stats .stats-item {
    background-color: var(--surface-color);
    box-shadow: 0px 0 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

    .stats .stats-item i {
        color: var(--accent-color);
        font-size: 42px;
        line-height: 0;
        margin-right: 20px;
    }

    .stats .stats-item span {
        color: var(--heading-color);
        font-size: 36px;
        display: block;
        font-weight: 600;
    }

    .stats .stats-item p {
        padding: 0;
        margin: 0;
        font-family: var(--heading-font);
        font-size: 16px;
    }

/* # 4.5 Services Section */
.services .img {
    border-radius: 8px;
    overflow: hidden;
}

    .services .img img {
        transition: 0.6s;
    }

.services .details {
    background: color-mix(in srgb, var(--surface-color), transparent 5%);
    padding: 50px 30px;
    margin: -100px 30px 0 30px;
    transition: all ease-in-out 0.3s;
    position: relative;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0px 0 25px rgba(0, 0, 0, 0.1);
}

    .services .details .icon {
        margin: 0;
        width: 72px;
        height: 72px;
        background: var(--accent-color);
        color: var(--contrast-color);
        border: 6px solid var(--contrast-color);
        border-radius: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 20px;
        font-size: 28px;
        transition: ease-in-out 0.3s;
        position: absolute;
        top: -36px;
        left: calc(50% - 36px);
    }

    .services .details h3 {
        font-weight: 700;
        margin: 10px 0 15px 0;
        font-size: 22px;
        transition: ease-in-out 0.3s;
    }

    .services .details p {
        color: color-mix(in srgb, var(--default-color), transparent 10%);
        line-height: 24px;
        font-size: 16px;
        margin-bottom: 0;
    }

.services .service-item:hover .details h3 {
    color: var(--accent-color);
}

.services .service-item:hover .details .icon {
    background: var(--surface-color);
    border: 2px solid var(--accent-color);
}

    .services .service-item:hover .details .icon i {
        color: var(--accent-color);
    }

.services .service-item:hover .img img {
    transform: scale(1.2);
}

/* # 4.6 Clients Section */
.clients {
    padding: 20px 0;
}

    .clients .client-logo {
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden;
    }

        .clients .client-logo img {
            padding: 20px 40px;
            max-width: 90%;
            transition: 0.3s;
            opacity: 0.5;
            filter: grayscale(100);
        }

            .clients .client-logo img:hover {
                filter: none;
                opacity: 1;
            }

/* # 4.7 Features Section */
.features .nav-tabs {
    border: 0;
}

.features .nav-link {
    background-color: var(--surface-color);
    color: var(--heading-color);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
    padding: 15px 20px;
    transition: 0.3s;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    height: 100%;
}

    .features .nav-link i {
        padding-right: 15px;
        font-size: 48px;
    }

    .features .nav-link h4 {
        font-size: 18px;
        font-weight: 600;
        margin: 0;
    }

    .features .nav-link:hover {
        color: var(--accent-color);
        border-color: var(--accent-color);
    }

    .features .nav-link.active {
        background: var(--accent-color);
        color: var(--contrast-color);
        border-color: var(--accent-color);
    }

        .features .nav-link.active h4 {
            color: var(--contrast-color);
        }

.features .tab-content {
    margin-top: 30px;
}

.features .tab-pane h3 {
    color: var(--heading-color);
    font-weight: 700;
    font-size: 26px;
}

.features .tab-pane ul {
    list-style: none;
    padding: 0;
}

    .features .tab-pane ul li {
        padding-bottom: 10px;
    }

    .features .tab-pane ul i {
        font-size: 20px;
        padding-right: 4px;
        color: var(--accent-color);
    }

.features .tab-pane p:last-child {
    margin-bottom: 0;
}

/* # 4.8 Services 2 Section */
.services-2 .service-item {
    background-color: var(--surface-color);
    padding: 30px;
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
    transition: 0.3s;
}

    .services-2 .service-item .icon {
        font-size: 36px;
        line-height: 0;
        margin-right: 30px;
        color: var(--accent-color);
    }

    .services-2 .service-item .title {
        font-weight: 700;
        margin-bottom: 15px;
        font-size: 20px;
    }

        .services-2 .service-item .title a {
            color: var(--heading-color);
        }

    .services-2 .service-item .description {
        line-height: 24px;
        font-size: 14px;
        margin: 0;
    }

    .services-2 .service-item:hover {
        border-color: var(--accent-color);
    }

        .services-2 .service-item:hover .title a {
            color: var(--accent-color);
        }

/* # 4.9 Testimonials Section */
.testimonials {
    padding: 80px 0;
    position: relative;
}

    .testimonials:before {
        content: "";
        background: color-mix(in srgb, var(--background-color), transparent 30%);
        position: absolute;
        inset: 0;
        z-index: 2;
    }

    .testimonials .testimonials-bg {
        position: absolute;
        inset: 0;
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 1;
    }

    .testimonials .container {
        position: relative;
        z-index: 3;
    }

    .testimonials .testimonials-carousel, .testimonials .testimonials-slider {
        overflow: hidden;
    }

    .testimonials .testimonial-item {
        text-align: center;
    }

        .testimonials .testimonial-item .testimonial-img {
            width: 100px;
            border-radius: 50%;
            border: 6px solid color-mix(in srgb, var(--default-color), transparent 85%);
            margin: 0 auto;
        }

        .testimonials .testimonial-item h3 {
            font-size: 20px;
            font-weight: bold;
            margin: 10px 0 5px 0;
        }

        .testimonials .testimonial-item h4 {
            font-size: 14px;
            margin: 0 0 15px 0;
            color: color-mix(in srgb, var(--default-color), transparent 40%);
        }

        .testimonials .testimonial-item .stars {
            margin-bottom: 15px;
        }

            .testimonials .testimonial-item .stars i {
                color: #ffc107;
                margin: 0 1px;
            }

        .testimonials .testimonial-item .quote-icon-left, .testimonials .testimonial-item .quote-icon-right {
            color: color-mix(in srgb, var(--default-color), transparent 40%);
            font-size: 26px;
            line-height: 0;
        }

        .testimonials .testimonial-item .quote-icon-left {
            display: inline-block;
            left: -5px;
            position: relative;
        }

        .testimonials .testimonial-item .quote-icon-right {
            display: inline-block;
            right: -5px;
            position: relative;
            top: 10px;
            transform: scale(-1, -1);
        }

        .testimonials .testimonial-item p {
            font-style: italic;
            margin: 0 auto 15px auto;
        }

    .testimonials .swiper-wrapper {
        height: auto;
    }

    .testimonials .swiper-pagination {
        margin-top: 20px;
        position: relative;
    }

        .testimonials .swiper-pagination .swiper-pagination-bullet {
            width: 12px;
            height: 12px;
            background-color: color-mix(in srgb, var(--default-color), transparent 50%);
            opacity: 0.5;
        }

        .testimonials .swiper-pagination .swiper-pagination-bullet-active {
            background-color: var(--default-color);
            opacity: 1;
        }

/* # 4.10 Portfolio Section */
.portfolio .portfolio-filters {
    padding: 0;
    margin: 0 auto 20px auto;
    list-style: none;
    text-align: center;
}

    .portfolio .portfolio-filters li {
        cursor: pointer;
        display: inline-block;
        padding: 0;
        font-size: 18px;
        font-weight: 500;
        margin: 0 10px;
        line-height: 1;
        margin-bottom: 5px;
        transition: all 0.3s ease-in-out;
    }

        .portfolio .portfolio-filters li:hover, .portfolio .portfolio-filters li.filter-active {
            color: var(--accent-color);
        }

        .portfolio .portfolio-filters li:first-child {
            margin-left: 0;
        }

        .portfolio .portfolio-filters li:last-child {
            margin-right: 0;
        }

.portfolio .portfolio-content {
    position: relative;
    overflow: hidden;
}

    .portfolio .portfolio-content img {
        transition: 0.3s;
    }

    .portfolio .portfolio-content .portfolio-info {
        opacity: 0;
        position: absolute;
        inset: 0;
        z-index: 3;
        transition: all ease-in-out 0.3s;
        background: rgba(0, 0, 0, 0.6);
        padding: 15px;
    }

        .portfolio .portfolio-content .portfolio-info h4 {
            font-size: 14px;
            padding: 5px 10px;
            font-weight: 400;
            color: #ffffff;
            display: inline-block;
            background-color: var(--accent-color);
        }

        .portfolio .portfolio-content .portfolio-info p {
            position: absolute;
            bottom: 10px;
            text-align: center;
            display: inline-block;
            left: 0;
            right: 0;
            font-size: 16px;
            font-weight: 600;
            color: rgba(255, 255, 255, 0.8);
        }

        .portfolio .portfolio-content .portfolio-info .preview-link, .portfolio .portfolio-content .portfolio-info .details-link {
            position: absolute;
            left: calc(50% - 40px);
            font-size: 26px;
            top: calc(50% - 14px);
            color: #fff;
            transition: 0.3s;
            line-height: 1.2;
        }

            .portfolio .portfolio-content .portfolio-info .preview-link:hover, .portfolio .portfolio-content .portfolio-info .details-link:hover {
                color: var(--accent-color);
            }

        .portfolio .portfolio-content .portfolio-info .details-link {
            left: 50%;
            font-size: 34px;
            line-height: 0;
        }

    .portfolio .portfolio-content:hover .portfolio-info {
        opacity: 1;
    }

    .portfolio .portfolio-content:hover img {
        transform: scale(1.1);
    }

/* # 4.11 Team Section */
.team {
    padding-bottom: 200px;
}

    .team .member {
        position: relative;
    }

        .team .member .pic {
            overflow: hidden;
            margin-bottom: 50px;
        }

        .team .member .member-info {
            background-color: var(--surface-color);
            color: color-mix(in srgb, var(--default-color), transparent 20%);
            box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
            position: absolute;
            bottom: -210px;
            left: 20px;
            right: 20px;
            padding: 20px 15px;
            overflow: hidden;
            transition: 0.5s;
            min-height: 150px;
        }

        .team .member h4 {
            font-weight: 700;
            margin-bottom: 10px;
            font-size: 16px;
            position: relative;
            padding-bottom: 10px;
        }

            .team .member h4::after {
                content: "";
                position: absolute;
                display: block;
                width: 50px;
                height: 1px;
                background: color-mix(in srgb, var(--default-color), transparent 60%);
                bottom: 0;
                left: 0;
            }

        .team .member span {
            font-style: italic;
            display: block;
            font-size: 13px;
        }

        .team .member .social {
            position: absolute;
            right: 15px;
            bottom: 15px;
        }

            .team .member .social a {
                transition: color 0.3s;
                color: color-mix(in srgb, var(--default-color), transparent 70%);
            }

                .team .member .social a:hover {
                    color: var(--accent-color);
                }

            .team .member .social i {
                font-size: 16px;
                margin: 0 2px;
            }

/* # 4.12 Contact Section */
.contact .info-item {
    background-color: var(--surface-color);
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
    padding: 24px 0 30px 0;
}

    .contact .info-item i {
        font-size: 20px;
        color: var(--accent-color);
        width: 56px;
        height: 56px;
        font-size: 24px;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 4px;
        transition: all 0.3s ease-in-out;
        border-radius: 50%;
        border: 2px dotted color-mix(in srgb, var(--accent-color), transparent 40%);
    }

    .contact .info-item h3 {
        font-size: 20px;
        color: color-mix(in srgb, var(--default-color), transparent 20%);
        font-size: 18px;
        font-weight: 700;
        margin: 10px 0;
    }

    .contact .info-item p {
        padding: 0;
        margin-bottom: 0;
        font-size: 14px;
    }

.contact .php-email-form {
    background-color: var(--surface-color);
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
    height: 100%;
    padding: 30px;
}

    .contact .php-email-form input[type=text], .contact .php-email-form input[type=email], .contact .php-email-form textarea {
        font-size: 14px;
        padding: 10px 15px;
        box-shadow: none;
        border-radius: 0;
        color: var(--default-color);
        background-color: var(--surface-color);
        border-color: color-mix(in srgb, var(--default-color), transparent 80%);
    }

        .contact .php-email-form input[type=text]:focus, .contact .php-email-form input[type=email]:focus, .contact .php-email-form textarea:focus {
            border-color: var(--accent-color);
        }

        .contact .php-email-form input[type=text]::placeholder, .contact .php-email-form input[type=email]::placeholder, .contact .php-email-form textarea::placeholder {
            color: color-mix(in srgb, var(--default-color), transparent 70%);
        }

    .contact .php-email-form button[type=submit] {
        color: var(--contrast-color);
        background: var(--accent-color);
        border: 0;
        padding: 10px 30px;
        transition: 0.4s;
        border-radius: 50px;
    }

        .contact .php-email-form button[type=submit]:hover {
            background: color-mix(in srgb, var(--accent-color), transparent 20%);
        }

/*--------------------------------------------------------------
# 5.0 Inner Pages & Details Sections
--------------------------------------------------------------*/

/* # 5.1 Global Page Titles & Breadcrumbs */
.page-title {
    color: var(--default-color);
    background-color: var(--background-color);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 160px 0 80px 0;
    text-align: center;
    position: relative;
}

    .page-title:before {
        content: "";
        background: color-mix(in srgb, var(--background-color), transparent 30%);
        position: absolute;
        inset: 0;
    }

    .page-title h1 {
        font-size: 42px;
        font-weight: 700;
        margin-bottom: 10px;
    }

    .page-title .breadcrumbs ol {
        display: flex;
        flex-wrap: wrap;
        list-style: none;
        justify-content: center;
        padding: 0;
        margin: 0;
        font-size: 16px;
        font-weight: 400;
    }

        .page-title .breadcrumbs ol li + li {
            padding-left: 10px;
        }

            .page-title .breadcrumbs ol li + li::before {
                content: "/";
                display: inline-block;
                padding-right: 10px;
                color: color-mix(in srgb, var(--default-color), transparent 50%);
            }

/* # 5.2 Portfolio, Service, Starter Details */
.portfolio-details .portfolio-details-slider img {
    width: 100%;
}

.portfolio-details .portfolio-details-slider .swiper-pagination {
    margin-top: 20px;
    position: relative;
}

    .portfolio-details .portfolio-details-slider .swiper-pagination .swiper-pagination-bullet {
        width: 12px;
        height: 12px;
        background-color: color-mix(in srgb, var(--default-color), transparent 85%);
        opacity: 1;
    }

    .portfolio-details .portfolio-details-slider .swiper-pagination .swiper-pagination-bullet-active {
        background-color: var(--accent-color);
    }

.portfolio-details .portfolio-info {
    background-color: var(--surface-color);
    padding: 30px;
    box-shadow: 0px 0 30px rgba(0, 0, 0, 0.1);
}

    .portfolio-details .portfolio-info h3 {
        font-size: 22px;
        font-weight: 700;
        margin-bottom: 20px;
        padding-bottom: 20px;
        border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
    }

    .portfolio-details .portfolio-info ul {
        list-style: none;
        padding: 0;
        font-size: 15px;
    }

        .portfolio-details .portfolio-info ul li + li {
            margin-top: 10px;
        }

.portfolio-details .portfolio-description {
    padding-top: 30px;
}

    .portfolio-details .portfolio-description h2 {
        font-size: 26px;
        font-weight: 700;
        margin-bottom: 20px;
    }

    .portfolio-details .portfolio-description p {
        padding: 0;
        color: color-mix(in srgb, var(--default-color), transparent 30%);
    }

.service-details .services-list {
    background-color: var(--surface-color);
    padding: 10px 30px;
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
    margin-bottom: 20px;
}

    .service-details .services-list a {
        display: block;
        line-height: 1;
        padding: 8px 0 8px 15px;
        border-left: 3px solid color-mix(in srgb, var(--default-color), transparent 70%);
        margin: 20px 0;
        color: color-mix(in srgb, var(--default-color), transparent 20%);
        transition: 0.3s;
    }

        .service-details .services-list a.active {
            color: var(--heading-color);
            font-weight: 700;
            border-color: var(--accent-color);
        }

        .service-details .services-list a:hover {
            border-color: var(--accent-color);
        }

.service-details .services-img {
    margin-bottom: 20px;
}

.service-details h3 {
    font-size: 26px;
    font-weight: 700;
}

.service-details h4 {
    font-size: 20px;
    font-weight: 700;
}

.service-details p {
    font-size: 15px;
}

.service-details ul {
    list-style: none;
    padding: 0;
    font-size: 15px;
}

    .service-details ul li {
        padding: 5px 0;
        display: flex;
        align-items: center;
    }

    .service-details ul i {
        font-size: 20px;
        margin-right: 8px;
        color: var(--accent-color);
    }

.starter-section { /* Add your styles here */
}

/*--------------------------------------------------------------
# 6.0 Components
--------------------------------------------------------------*/

/* # 6.1 Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #273d4e;
    color: #ffffff;
    padding: 15px 20px;
    z-index: 10000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

    .cookie-banner p {
        margin: 0;
        margin-right: 15px;
        color: #e5eaee;
    }

    .cookie-banner a {
        color: #f39c12;
        text-decoration: underline;
    }

        .cookie-banner a:hover {
            color: #ffffff;
        }

    .cookie-banner button {
        background-color: #f39c12;
        color: #ffffff;
        border: none;
        padding: 8px 15px;
        border-radius: 4px;
        cursor: pointer;
        font-weight: 500;
    }

        .cookie-banner button:hover {
            background-color: #e03e0f;
        }

/* # 6.2 Floating Action Buttons (Scroll Top, Chat, Test) */
.scroll-top {
    position: fixed;
    visibility: hidden;
    opacity: 0;
    right: 25px; /* Horizontal position desktop */
    bottom: 25px; /* Base vertical position desktop (lower) */
    z-index: 1030; /* Lower than .chat-fab */
    background-color: var(--accent-color);
    width: 40px;
    height: 40px;
    border-radius: 4px;
    transition: all 0.4s;
    /*display: flex;*/
    align-items: center;
    justify-content: center;
    display: none !important;
}

    .scroll-top i {
        font-size: 24px;
        color: var(--contrast-color);
        line-height: 0;
    }

    .scroll-top:hover {
        background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
        color: var(--contrast-color);
    }

    .scroll-top.active {
        visibility: visible;
        opacity: 1;
    }

.chat-fab {
    position: fixed;
    /* Desktop Calculation:
       .scroll-top bottom (25px)
       + .scroll-top height (40px)
       + NEW margin (15px)
       = 25 + 40 + 15 = 80px
    */
    bottom: 25px;
    right: 25px;
    padding: 12px 20px;
    background-color: var(--accent-color);
    color: var(--contrast-color);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 1040;
    transition: transform 0.3s ease, background-color 0.3s ease, width 0.3s ease, padding 0.3s ease, bottom 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

    .chat-fab i {
        font-size: 24px;
        margin-right: 10px;
        line-height: 1;
        transition: margin-right 0.3s ease;
    }

    .chat-fab span {
        font-size: 0.95rem;
        font-weight: 500;
        line-height: 1;
        white-space: nowrap;
        transition: opacity 0.3s ease, max-width 0.3s ease;
        opacity: 1;
        max-width: 200px;
    }

    .chat-fab:hover {
        transform: scale(1.05);
        background-color: color-mix(in srgb, var(--accent-color), black 10%);
    }

.free-test-fab {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    /* Vertical padding increased to match the height of chat-fab */
    padding: 16px 20px;
    background-color: var(--accent-color);
    color: var(--contrast-color);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 1040;
    transition: transform 0.3s ease, background-color 0.3s ease, bottom 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}

    .free-test-fab:hover {
        transform: translateX(-50%) scale(1.05);
        background-color: color-mix(in srgb, var(--accent-color), black 10%);
        color: var(--contrast-color);
    }

/* Utility class to hide FABs */
.fab-hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

/* Modification for the centered button to combine transformations */
.free-test-fab.fab-hidden {
    transform: translateX(-50%) translateY(20px);
}

.back-fab {
    position: fixed;
    bottom: 25px;
    left: 25px;
    padding: 12px 20px;
    background-color: var(--accent-color);
    color: var(--contrast-color);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 1040;
    transition: transform 0.3s ease, background-color 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}

    .back-fab i {
        font-size: 24px;
        margin-right: 10px;
        line-height: 1;
        transition: margin-right 0.3s ease;
    }

    .back-fab span {
        font-size: 0.95rem;
        font-weight: 500;
        line-height: 1;
        white-space: nowrap;
        transition: opacity 0.3s ease, max-width 0.3s ease;
        opacity: 1;
        max-width: 200px;
    }

    .back-fab:hover {
        transform: scale(1.05);
        background-color: color-mix(in srgb, var(--accent-color), black 10%);
        color: var(--contrast-color);
    }

/* # 6.3 Chatbot */
/* General & Font Rules (unchanged) */
#ai-chat {
    position: relative;
    z-index: 1;
}

/* Custom image frame for Space Invaders */
.image-frame {
    width: 100%;
    max-width: 400px; /* Adjust as needed for desired maximum width */
    aspect-ratio: 4/3; /* Maintain a 4:3 aspect ratio (width/height) */
    background-color: black;
    display: flex;
    justify-content: center; /* Center content horizontally */
    align-items: center;
    overflow: hidden; /* Hide parts of the image that exceed the frame */
    margin-left: 0; /* Align to the left */
    margin-right: auto; /* Ensure it doesn't push to the right */
    border-radius: 8px; /* Optional: rounded corners for the frame */
}

.image-frame img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Scale the image to fit inside the frame while maintaining aspect ratio */
    display: block; /* Remove extra space below image */
}

.custom-divider {
    border: 0;
    height: 2px; /* Increased thickness */
    background-color: #d0d0d0; /* Slightly darker gray for better visibility */
    opacity: 0.8; /* Slightly less transparent */
}

.ai-logo {
    height: 30px; /* Adjust size as needed */
    margin-right: 10px;
    vertical-align: middle;
}

.faded-band {
    height: 2px;
    background: linear-gradient(to right, transparent, #d0d0d0, transparent);
    margin-top: 10px;
    margin-bottom: 20px;
    width: 100%; /* Ensure it spans the full width of its container */
}

/* Chat Box Component */
.chat-box {
    position: fixed;
    /* Desktop: bottom of .chat-fab (80px) + height of .chat-fab (estimated ~48px) + margin (15px) = ~143px */
    /* Let's round to 145px for safety or a value that works visually */
    bottom: 88px;
    right: 25px;
    width: 360px;
    max-width: calc(100vw - 40px);
    max-height: 75vh; /* Or 70vh if you prefer slightly less height */
    background-color: var(--surface-color);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    z-index: 1050;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease, bottom 0.3s ease;
}

    .chat-box.open {
        display: flex;
        opacity: 1;
        transform: translateY(0) scale(1);
    }

.chat-box-header {
    background-color: var(--heading-color);
    color: var(--contrast-color);
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

    .chat-box-header h3 {
        margin: 0;
        font-size: 1.1rem;
        font-weight: 600;
        font-family: var(--heading-font);
        color: var(--contrast-color);
    }

.close-chat-btn {
    background: none;
    border: none;
    color: var(--contrast-color);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    padding: 0 5px;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

    .close-chat-btn:hover {
        opacity: 1;
    }

.chat-box-body {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    background-color: var(--surface-color);
    color: var(--default-color);
    display: flex;
    flex-direction: column;
}

    .chat-box-body::-webkit-scrollbar {
        width: 6px;
    }

    .chat-box-body::-webkit-scrollbar-track {
        background: color-mix(in srgb, var(--default-color), transparent 95%);
        border-radius: 3px;
    }

    .chat-box-body::-webkit-scrollbar-thumb {
        background: color-mix(in srgb, var(--default-color), transparent 70%);
        border-radius: 3px;
    }

        .chat-box-body::-webkit-scrollbar-thumb:hover {
            background: color-mix(in srgb, var(--default-color), transparent 50%);
        }

.chat-message {
    padding: 10px 15px;
    border-radius: 18px;
    margin-bottom: 12px;
    max-width: 85%;
    line-height: 1.45;
    font-size: 0.9rem;
    word-wrap: break-word;
}

    .chat-message.ai {
        background-color: #f1f4fa;
        color: var(--default-color);
        border-bottom-left-radius: 5px;
        align-self: flex-start;
        margin-right: auto;
    }

    .chat-message.user {
        background-color: var(--accent-color);
        color: var(--contrast-color);
        border-bottom-right-radius: 5px;
        align-self: flex-end;
        margin-left: auto;
    }

.chat-box-footer {
    padding: 12px 15px;
    display: flex;
    align-items: center;
    border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
    background-color: var(--surface-color);
    flex-shrink: 0;
}

#chat-input {
    flex-grow: 1;
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 80%);
    border-radius: 20px;
    padding: 10px 18px;
    font-size: 0.9rem;
    margin-right: 10px;
    background-color: var(--background-color);
    color: var(--default-color);
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

    #chat-input::placeholder {
        color: color-mix(in srgb, var(--default-color), transparent 60%);
    }

    #chat-input:focus {
        border-color: var(--accent-color);
        box-shadow: 0 0 0 0.15rem color-mix(in srgb, var(--accent-color), transparent 80%);
    }

#send-chat-message {
    background-color: var(--accent-color);
    color: var(--contrast-color);
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.3s ease;
}

    #send-chat-message:hover {
        background-color: color-mix(in srgb, var(--accent-color), black 10%);
    }

    #send-chat-message i {
        line-height: 0;
    }

    #send-chat-message:disabled {
        cursor: not-allowed;
    }

    #send-chat-message i.bi-hourglass-split {
        animation: spin 1.5s linear infinite;
    }

.chat-message.typing-indicator {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background-color: #f1f4fa;
    border-bottom-left-radius: 5px;
    align-self: flex-start;
    margin-right: auto;
}

.typing-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--default-color);
    border-radius: 50%;
    margin: 0 2px;
    animation: typing-blink 1.2s infinite ease-in-out;
}

    .typing-dot:nth-child(1) {
        animation-delay: 0s;
    }

    .typing-dot:nth-child(2) {
        animation-delay: 0.2s;
    }

    .typing-dot:nth-child(3) {
        animation-delay: 0.4s;
    }

@keyframes typing-blink {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }
}

.chat-message.error-message {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
    align-self: flex-start;
    margin-right: auto;
    border-bottom-left-radius: 5px;
}

/* Embedded Chatbot Container Styles */
.ai-chat-container {
    display: flex;
    flex-direction: column;
    height: 400px;
    background-color: var(--surface-color, #ffffff);
    border: 1px solid #e9e9e9;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
    overflow: hidden;
}

/* STYLES FOR .ai-chat-header HAVE BEEN REMOVED */

/* Styles for the chatbot body and messages */
.ai-chat-body {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.ai-chat-message {
    padding: 10px 15px;
    border-radius: 18px;
    margin-bottom: 12px;
    max-width: 85%;
    line-height: 1.45;
    font-size: 0.9rem;
    word-wrap: break-word;
}

    .ai-chat-message.bot {
        background-color: #f1f4fa;
        color: var(--default-color, #444444);
        border-bottom-left-radius: 5px;
        align-self: flex-start;
    }

    .ai-chat-message.user {
        background-color: var(--accent-color, #f39c12);
        color: var(--contrast-color, #ffffff);
        border-bottom-right-radius: 5px;
        align-self: flex-end;
    }

/* Styles for the chatbot footer and input */
.ai-chat-footer {
    flex-shrink: 0;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-top: 1px solid #e9e9e9;
}

.ai-chat-input-wrapper {
    flex-grow: 1;
    margin-right: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 5px 15px;
    display: flex;
    align-items: center;
    background-color: #fff;
}

#ai-chat-input {
    width: 100%;
    border: none;
    outline: none;
    background-color: transparent;
    resize: none;
    font-size: 0.9rem;
    line-height: 1.5;
    max-height: 100px;
    overflow-y: auto;
    padding: 5px 0;
}

#ai-chat-send-btn {
    background-color: var(--accent-color, #f39c12);
    color: var(--contrast-color, #ffffff);
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.3s;
}

    /* Rule for animation (unchanged) */
    #ai-chat-send-btn i.bi-hourglass-split {
        animation: spin 1.5s linear infinite;
    }

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/*--------------------------------------------------------------
# 7.0 Responsive Design Adjustments
--------------------------------------------------------------*/
@media (max-width: 1200px) {
    .header .logo {
        order: 1;
    }

    .header .cta-btn {
        order: 2;
        margin: 0 15px 0 0;
        padding: 6px 15px;
    }

    .header .navmenu {
        order: 3;
    }
}

@media (max-width: 1199px) {
    section,
    .section {
        scroll-margin-top: 76px;
    }

    .header .logo {
        flex-direction: column; /* Stack the image and text vertically */
        align-items: center; /* Horizontally center the stacked items */
        text-align: center; /* Ensure text is centered if it wraps */
    }

        .header .logo .logo-svg { /* Adjust SVG dimensions for mobile */
            max-height: 75px; /* Slightly reduce the image size for smaller screens */
            width: auto; /* Allow width to adjust based on height and aspect ratio */
            margin-bottom: 2px; /* Add a small vertical space between the SVG and text, if present */
        }

        .header .logo img { /* This rule for img can be removed if you only use SVG */
            margin-right: 0; /* Remove right margin used for horizontal alignment */
            margin-bottom: 2px; /* Add a small vertical space between image and text */
            max-height: 50px; /* Slightly reduce image size for smaller screens */
        }

        .header .logo h1 {
            font-size: 22px; /* Reduce font size to make it more compact */
            line-height: 1.2; /* Improve line-height when text is stacked */
            margin: 0; /* Ensure no unwanted margins around h1 */
        }
}

@media (min-width: 992px) {
    .testimonials .testimonial-item p {
        width: 80%;
    }
}

@media (max-width: 991px) {
    .team {
        padding-bottom: 60px;
    }

        .team .member {
            margin-bottom: 30px;
        }

            .team .member .pic {
                margin-bottom: 20px;
            }

            .team .member .member-info {
                position: static;
                bottom: auto;
                left: auto;
                right: auto;
                width: 100%;
                margin-top: 0;
                margin-left: 0;
                margin-right: 0;
                min-height: auto;
                box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.08);
            }
}

@media (max-width: 768px) {
    [data-aos-delay] {
        transition-delay: 0 !important;
    }

    .section-title p {
        font-size: 24px;
    }

    .hero h2 {
        font-size: 32px;
    }
    
    .hero h1,
    .hero .hero-title {
        font-size: 1.8rem !important;
        text-align: center !important;
        line-height: 1.3;
    }

    .hero p {
        font-size: 18px;
    }

    .features .nav-link i {
        padding: 0;
        line-height: 1;
        font-size: 36px;
    }

    /* Responsive adjustments for scroll-top */
    .scroll-top {
        right: 20px; /* Horizontal position mobile */
        bottom: 20px; /* Base vertical position mobile (lower) */
        width: 36px;
        height: 36px;
    }

        .scroll-top i {
            font-size: 20px;
        }

    /* Responsive adjustments for Chatbot and related fixed elements */
    .chat-fab {
        bottom: 20px; /* MODIFIED */
        right: 20px;
        padding: 10px 15px;
    }

        .chat-fab i {
            font-size: 20px;
            margin-right: 8px;
        }

        .chat-fab span {
            font-size: 0.85rem;
        }

    .chat-box {
        bottom: 79px; /* MODIFIED */
        right: 15px;
        left: 15px;
        width: auto;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
        max-height: 60vh;
        transform-origin: bottom center;
    }

    .chat-box-header h3 {
        font-size: 1rem;
    }

    .chat-message {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    #chat-input {
        padding: 8px 15px;
        font-size: 0.85rem;
    }

    #send-chat-message {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    /* Responsive adjustments for Test Button */
    .free-test-fab {
        bottom: 20px; /* MODIFIED */
        left: 50%;
        transform: translateX(-50%);
        padding: 13px 15px;
        font-size: 0.85rem;
    }

        .free-test-fab:hover {
            transform: translateX(-50%) scale(1.05);
        }

    /* Responsive adjustments for Back Button */
    .back-fab {
        bottom: 20px;
        left: 20px;
        padding: 10px 15px;
    }

        .back-fab i {
            font-size: 20px;
            margin-right: 8px;
        }

        .back-fab span {
            font-size: 0.85rem;
        }
}

@media (max-width: 640px) {
    .clients .client-logo img {
        padding: 20px;
    }
}

@media (max-width: 575px) {
    .features .nav-link {
        padding: 15px;
    }

        .features .nav-link i {
            font-size: 24px;
        }

    .portfolio .portfolio-filters li {
        font-size: 14px;
        margin: 0 5px;
    }

    .contact .php-email-form {
        padding: 20px;
    }
}

@media (max-width: 480px) { /* For narrow mobile screens, when the FAB becomes icon-only */
    .chat-fab span {
        opacity: 0;
        max-width: 0;
        overflow: hidden;
    }

    .chat-fab i {
        margin-right: 0;
    }

    .chat-fab {
        bottom: 20px; /* MODIFIED */
        width: 50px;
        height: 50px;
        padding: 0;
        border-radius: 50%;
        justify-content: center;
    }

    .chat-box {
        bottom: 85px; /* MODIFIED */
        left: 10px;
        right: 10px;
        width: auto;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        max-height: 55vh;
        transform-origin: bottom center;
    }

    .free-test-fab {
        bottom: 20px; /* MODIFIED */
        left: 50%;
        transform: translateX(-50%);
        padding: 19px 12px;
        font-size: 0.75rem;
    }

        .free-test-fab:hover {
            transform: translateX(-50%) scale(1.05);
        }
}

@media (max-width: 1199px) {
    .team .member .member-info {
        position: static;
        margin-top: -20px; /* opzionale: per avvicinare il box all'immagine */
    }
}

/* Blog button - similar style to FAB buttons but not floating */
.blog-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 20px;
    background-color: var(--accent-color);
    color: var(--contrast-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.blog-btn i {
    font-size: 18px;
    margin-right: 8px;
    line-height: 1;
}

.blog-btn span {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1;
}

.blog-btn:hover {
    transform: scale(1.05);
    background-color: color-mix(in srgb, var(--accent-color), black 10%);
    color: var(--contrast-color);
    text-decoration: none;
}
