:root {
    --primary-color: #d32f2f; /* Bold Red */
    --primary-color-dark: #b71c1c;
    --light-color: #ffffff;   /* Pure White */
    --dark-color: #212121;    /* Dark Grey for Text */
    --grey-color: #f9f9f9;    /* Lighter Grey for Alt Sections */
    --grey-dark: #424242;     /* Medium Grey for Body Text */
    --border-color: #eeeeee;
    --warning-color: #ffc107;
    --success-color: #28a745;
    --font-sans: 'Poppins', sans-serif;
    --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Global Styles & Resets --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 15px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.2rem, 4vw, 3.5rem); line-height: 1.1; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); line-height: 1.2; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); line-height: 1.3; }

p {
    color: var(--grey-dark);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    margin: 0.8rem auto 0;
    border-radius: 2px;
}

.highlight-text { color: var(--primary-color); }

.section-intro {
    text-align: center;
    max-width: 750px;
    margin: -1.5rem auto 2.5rem;
    font-size: 1.05rem;
}

.alt-section {
    padding: 5rem 0;
    background: var(--grey-color);
}

.section-with-pattern {
    padding: 5rem 0;
}

/* --- Header --- */
/* START: Reduced Navbar Size */
#main-header {
    width: 100%;
    z-index: 1000;
    padding: 0.2rem 0; /* Reduced vertical padding */
    background: transparent;
    position: fixed;
    top: 0;
    transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.logo-img {
    height: 55px !important; /* Overriding inline style */
    width: 55px !important;  /* Overriding inline style */
}
/* END: Reduced Navbar Size */

#main-header.header-scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-light);
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.desktop-nav { display: none; }

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--light-color);
    text-decoration: none;
    padding: 0.4rem 0; /* Adjusted padding for new navbar height */
    font-weight: 500;
    position: relative;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

#main-header.header-scrolled .nav-links a {
    color: var(--dark-color);
    text-shadow: none;
}

.nav-links a .fa-chevron-down {
    font-size: 0.7em;
    transition: transform 0.3s;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-links li:not(.nav-contact-button) a:hover {
    color: var(--primary-color);
}

.nav-links li:not(.nav-contact-button) a:hover::before {
    width: 100%;
}


/* --- Mega Menu & Simple Dropdown CSS --- */
.dropdown {
    position:static;
}

.dropdown-content {
    display: none; /* Changed from display:none to visibility for transitions */
    position: absolute;
    top: 85%; 
    left: 0;
    width: 100%;
    background-color: var(--light-color);
    box-shadow: var(--shadow-medium);
    z-index: 1001;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
}

/* --- NEW: Hover-activated dropdown --- */
.dropdown:hover .dropdown-content {
    display: block; /* Use block to show on hover */
    opacity: 1;
    transform: translateY(0);
}

.dropdown:hover .drop-btn .fa-chevron-down {
    transform: rotate(180deg);
}

/* --- NEW: Simple Dropdown Styling --- */
.simple-dropdown {
    width: auto; /* Allow the dropdown to size to its content */
    min-width: 250px;
    padding: 0.5rem 0; /* Reduced padding */
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    left: auto; /* Unset left:0 to align with parent */
    transform-origin: top center;
}

.simple-dropdown a {
    color: var(--dark-color) !important; /* Override scrolled header color */
    text-shadow: none !important;
    display: block; /* Make links take full width */
    padding: 0.8rem 1.5rem !important; /* More padding inside */
    font-size: 0.95rem;
}

.simple-dropdown a:hover {
    background-color: var(--grey-color);
    color: var(--primary-color) !important;
}

.simple-dropdown a::before {
    display: none !important; /* Hide the underline effect */
}


.mega-menu-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.mega-menu-columns {
    display: flex;
    flex-grow: 1;
    gap: 2rem;
}

.mega-menu-column {
    flex: 1;
}

.mega-menu-column h4 {
    font-size: 1rem;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mega-menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: var(--transition);
    margin-bottom: 0.5rem;
}

.mega-menu-item:hover {
    background-color: var(--grey-color);
    color: var(--primary-color);
}

.mega-menu-item::before {
    display: none;
}

.menu-item-icon {
    font-size: 1.5rem;
    width: 30px;
    text-align: center;
    color: var(--primary-color);
}

.menu-item-text h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
    transition: color 0.2s;
}

.mega-menu-item:hover .menu-item-text h5 {
    color: var(--primary-color);
}

.menu-item-text p {
    font-size: 0.85rem;
    color: var(--grey-dark);
    margin: 0;
    line-height: 1.4;
}

.mega-menu-featured {
    flex: 0 0 250px;
    background-color: var(--grey-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.featured-product-image {
    width: 100px;
    height: 100px;
    margin-bottom: 1rem;
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    border: 3px solid var(--light-color);
    box-shadow: var(--shadow-light);
}

.mega-menu-featured h4 {
    font-size: 1.1rem;
    color: var(--primary-color-dark);
    margin-bottom: 0.5rem;
}

.mega-menu-featured p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.mega-menu-featured .cta-button {
    width: 100%;
    padding: 0.6rem 1rem;
}

/* START: Reduced Navbar Button Size */
.nav-links .nav-contact-button a {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 0.5rem 1.2rem; /* Reduced padding */
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
/* END: Reduced Navbar Button Size */

#main-header.header-scrolled .nav-contact-button a {
    color: var(--light-color);
}

.nav-links .nav-contact-button a:hover {
    background-color: var(--primary-color-dark);
    color: var(--light-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.nav-links .nav-contact-button a::before {
    display: none;
}

.mobile-menu-button {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--light-color);
    padding: 0.5rem;
}
#main-header.header-scrolled .mobile-menu-button {
    color: var(--dark-color);
}


/* --- Buttons --- */
.cta-button {
    display: inline-block;
    padding: 0.7rem 1.8rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 25px rgba(211, 47, 47, 0.25);
}

.cta-button.primary {
    background: var(--primary-color);
    color: var(--light-color);
}

.cta-button.primary:hover {
    background: var(--primary-color-dark);
}

.cta-button.secondary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.cta-button.secondary:hover {
    background: var(--primary-color);
    color: var(--light-color);
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    background-color: var(--dark-color);
    padding-top: 80px;
}

.hero-carousel {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

/* --- Ken Burns Effect on Hero Image --- */
@keyframes kenburns-a {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.1) translate(-2%, 1%); }
}
@keyframes kenburns-b {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.1) translate(2%, -1%); }
}

.hero-carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    transform-origin: center center;
}

.hero-carousel-slide.active {
    opacity: 1;
    animation: kenburns-a 10s ease-out forwards;
}

.hero-carousel-slide:nth-child(even).active {
    animation-name: kenburns-b;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-text { text-align: left; }

.hero-text h1,
.hero-text p {
    color: var(--light-color);
}

.hero-text h1 {
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

#hero-vertical-text {
    display: inline-block;
    transition: all 0.3s ease;
}

.hero-text p {
    max-width: 550px;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero .cta-button.secondary {
    color: var(--light-color);
    border-color: var(--light-color);
}

.hero .cta-button.secondary:hover {
    background: var(--light-color);
    color: var(--primary-color);
}

/* --- Stats Grid --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--light-color);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--grey-dark);
}

/* --- Verticals Section --- */
.verticals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.vertical {
    min-height: 350px;
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    background-size: cover;
    background-position: center;
}

.vertical::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.1) 60%, transparent 100%);
    transition: var(--transition);
}

.vertical:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-medium);
}

.vertical:hover::before {
    background: linear-gradient(to top, rgba(211, 47, 47, 0.8) 0%, rgba(211, 47, 47, 0.2) 60%, transparent 100%);
}

.vertical-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    color: var(--light-color);
    z-index: 2;
}

.vertical-icon {
    font-size: 2rem;
    margin-bottom: 0.8rem;
    color: var(--light-color);
}

.vertical-content h3 { color: var(--light-color); }
.vertical-content p { color: rgba(255, 255, 255, 0.9); font-size: 0.95rem; }

/* Background Images for Verticals */
#construction { background-image: url('/Images/ConstructionBgImage.webp'); }
#finance { background-image: url('/Images/FinanceBgImage.jpeg'); }
#recruitment { background-image: url('/Images/RecruitementBgImage.jpeg'); }
#procurement { background-image: url('/Images/ProcurementBgImage.webp'); }
#it { background-image: url('/Images/ITBgImage.webp'); }
#foundation { background-image: url('/Images/FoundationBgImage.jpeg'); }

/* --- Products Section --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    align-items: start;
}

.product-card {
    background: var(--light-color);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    min-height: 140px;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.product-header {
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.product-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.product-body, .product-footer {
    opacity: 0;
    max-height: 0;
    padding: 0 1.5rem;
    transition: max-height 0.5s ease, opacity 0.4s ease, padding 0.5s ease;
}

.product-card:hover .product-body,
.product-card:hover .product-footer {
    opacity: 1;
    max-height: 500px;
    padding: 1.5rem;
}

.product-body {
    flex-grow: 1;
}

.product-features {
    list-style: none;
    padding: 0;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.product-features li i { color: var(--primary-color); }

.product-footer {
    text-align: center;
    border-top: 1px solid transparent;
    transition: border-color 0.4s ease-in-out;
}

.product-card:hover .product-footer {
    border-top-color: var(--border-color);
}

.demo-button { width: 100%; }

/* --- Scroller (Clientele & Reviews) --- */
.clientele-section {
    padding: 4rem 0;
    background: var(--light-color);
}

.scroller {
    max-width: 100%;
    overflow: hidden;
    -webkit-mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
    mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
}

.scroller-inner {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    gap: 2rem;
    animation: scroll 40s linear infinite;
}

.scroller[data-direction="right"] .scroller-inner {
    animation-direction: reverse;
}

.scroller:hover .scroller-inner {
    animation-play-state: paused;
}

.clientele-section .scroller-inner img {
    height: 35px;
    max-width: 120px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.6);
    transition: var(--transition);
}

.clientele-section .scroller-inner img:hover {
    filter: grayscale(0%) opacity(1);
}

@keyframes scroll {
    to {
        transform: translate(calc(-50% - 1rem));
    }
}

/* --- Reviews Section --- */
.review-card {
    background: var(--light-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    width: 350px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
}

.review-header {
    display: grid;
    grid-template-areas:
        "avatar author"
        "avatar company"
        "stars stars";
    grid-template-columns: auto 1fr;
    gap: 0.1rem 1rem;
    align-items: center;
}

.review-avatar {
    grid-area: avatar;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.review-author-info {
    grid-area: author / span 1 / auto / span 1;
}

.review-author-info h4 {
    margin: 0;
    font-size: 1rem;
}

.review-author-info span {
    font-size: 0.85rem;
    color: var(--grey-dark);
}

.review-stars {
    grid-area: stars;
    color: var(--warning-color);
    font-size: 1rem;
    margin-top: 0.5rem;
}

.review-card p {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--dark-color);
    margin: 0;
    line-height: 1.5;
}


/* --- Contact Section --- */
.contact-section {
    padding: 5rem 0;
    text-align: center;
    color: var(--light-color);
    position: relative;
    background: url('/Images/contact-bg.jpeg') no-repeat center center/cover;
    background-attachment: fixed; /* Parallax effect */
}

.contact-overlay {
    position: absolute;
    inset: 0;
    background: rgba(211, 47, 47, 0.8);
}

.contact-section .container {
    position: relative;
    z-index: 2;
}

.contact-section h2,
.contact-section p {
    color: var(--light-color);
}

.contact-section p {
    font-size: 1.1rem;
    max-width: 550px;
    margin: 0 auto 2rem;
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.contact-buttons .cta-button.primary {
    background: var(--light-color);
    color: var(--primary-color);
}

.contact-buttons .cta-button.primary:hover {
    background: #f0f0f0;
}

.contact-buttons .cta-button.secondary {
    border-color: var(--light-color);
    color: var(--light-color);
}

.contact-buttons .cta-button.secondary:hover {
    background: var(--light-color);
    color: var(--primary-color);
}

/* --- Footer --- */
footer {
    background: var(--dark-color);
    color: var(--grey-color);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-column h4 {
    color: var(--light-color);
    margin-bottom: 1.2rem;
    position: relative;
    font-size: 1.1rem;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

.footer-column p,
.footer-column li {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
}

.footer-column ul { list-style: none; }

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-column a:hover { color: var(--primary-color); }

.footer-column .contact-info p {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--light-color);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* --- Mobile Navigation --- */
.mobile-nav-overlay {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1001;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.95);
    overflow-x: hidden;
    overflow-y: auto;
    transition: 0.5s;
}

.mobile-nav-content {
    position: relative;
    top: 15%;
    width: 100%;
    text-align: center;
    margin-top: 30px;
}

.mobile-nav-overlay a {
    padding: 12px;
    text-decoration: none;
    font-size: 28px;
    color: #818181;
    display: block;
    transition: 0.3s;
}

.mobile-nav-overlay a:hover,
.mobile-nav-overlay a:focus {
    color: var(--primary-color);
}

.mobile-nav-overlay .close-btn {
    position: absolute;
    top: 20px;
    right: 45px;
    font-size: 60px;
    color: #fff;
}

/* --- Animations & Utilities --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s, transform 0.8s;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.success-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--success-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    z-index: 2000;
}

input.error { border-color: var(--primary-color) !important; }

/* --- Focus Styles for Accessibility --- */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* --- Demo Modal --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
    padding: 1rem;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--light-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 100%;
    box-shadow: var(--shadow-medium);
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease-in-out;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.open .modal-content {
    transform: scale(1);
}

.close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--grey-dark);
    cursor: pointer;
    transition: color 0.2s;
}

.close-button:hover {
    color: var(--primary-color);
}

.modal-content h3 {
    margin: 0 0 1rem 0;
    text-align: center;
    color: var(--dark-color);
}

.modal-content p {
    margin-bottom: 1.5rem;
    color: var(--grey-dark);
    text-align: center;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

#demo-form .cta-button {
    width: 100%;
    margin-top: 1rem;
}

/* --- Chatbot --- */
#chatbot-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1010;
}

#chatbot-toggle {
    width: 55px;
    height: 55px;
    background: var(--primary-color);
    color: var(--light-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.6rem;
    cursor: pointer;
    box-shadow: var(--shadow-medium);
    transition: transform 0.2s, background-color 0.2s;
}

#chatbot-toggle:hover {
    transform: scale(1.1);
    background-color: var(--primary-color-dark);
}

#chatbot-toggle .open-icon,
#chatbot-toggle.open .close-icon { display: block; }
#chatbot-toggle .close-icon,
#chatbot-toggle.open .open-icon { display: none; }

#chatbot-window {
    position: absolute;
    bottom: calc(100% + 1rem);
    right: 0;
    width: 320px;
    max-height: 450px;
    background: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
}

#chatbot-window.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.chatbot-header {
    background: var(--primary-color);
    color: var(--light-color);
    padding: 1rem 1.2rem;
}
.chatbot-header h3 { color: var(--light-color); margin: 0; font-size: 1.1rem; }
.chatbot-header p { color: rgba(255,255,255,0.8); margin: 0.2rem 0 0; font-size: 0.85rem; }

.chatbot-body {
    flex-grow: 1;
    padding: 1rem;
    overflow-y: auto;
}

.chat-message {
    margin-bottom: 1rem;
    max-width: 85%;
    display: flex;
    flex-direction: column;
}

.chat-message.user { align-self: flex-end; }
.chat-message p { padding: 0.6rem 1rem; border-radius: 1rem; font-size: 0.9rem; }
.chat-message.user p { background: var(--primary-color); color: var(--light-color); border-bottom-right-radius: 0; }
.chat-message.bot { align-self: flex-start; }
.chat-message.bot p { background: #e9e9eb; color: var(--dark-color); border-bottom-left-radius: 0; }
.chat-message.bot a { color: var(--primary-color-dark); }

.typing-indicator {
    display: flex;
    gap: 5px;
    align-items: center;
    padding: 0.8rem;
}
.typing-indicator span {
    width: 8px;
    height: 8px;
    background-color: var(--grey-dark);
    border-radius: 50%;
    animation: bounce 1s infinite;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1.0); } }

.chatbot-quick-replies {
    padding: 0 1rem 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.quick-reply {
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.4rem 0.8rem;
    border-radius: 1rem;
    cursor: pointer;
    font-size: 0.8rem;
    transition: var(--transition);
}
.quick-reply:hover { background: var(--primary-color); color: var(--light-color); }

.chatbot-footer { display: flex; border-top: 1px solid var(--border-color); padding: 0.5rem; }
#chatbot-input { flex-grow: 1; border: none; padding: 0.8rem; font-size: 0.95rem; background: transparent; }
#chatbot-input:focus { outline: none; }
#chatbot-send { background: none; border: none; color: var(--primary-color); font-size: 1.5rem; cursor: pointer; padding: 0.5rem 1rem; transition: color 0.2s; }
#chatbot-send:hover { color: var(--primary-color-dark); }


/* --- Responsive Design --- */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
    .scroller .scroller-inner { animation: none; }
     .reveal {
        transition: none;
        opacity: 1;
        transform: none;
    }
}

@media (min-width: 992px) {
    .desktop-nav { display: flex; }
    .mobile-menu-button { display: none; }
}

@media (max-width: 991px) {
    .dropdown .dropdown-content {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .hero-text h1 { font-size: 2.2rem; }
    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    .hero-buttons .cta-button {
        width: 250px;
        text-align: center;
    }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-buttons { flex-direction: column; align-items: center; }
    .product-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    #chatbot-window {
        width: calc(100vw - 2rem);
        max-height: 70vh;
        right: -1rem;
        bottom: calc(100% + 0.5rem);
    }
    #chatbot-container {
        bottom: 1rem;
        right: 1rem;
    }
}

.chatbot-quick-replies {
    padding-bottom: 1rem; /* Add more space for nav buttons */
}

.quick-reply.nav-reply {
    background-color: #f0f0f0;
    color: var(--dark-color);
    border-color: #e0e0e0;
    font-weight: 500;
}

.quick-reply.nav-reply:hover {
    background-color: #e0e0e0;
    border-color: #d1d1d1;
    color: var(--dark-color);
}

.quick-reply.nav-reply i {
    margin-right: 0.4rem;
}