/* HudHud Solutions Website Styles */
/* Root variables */
:root {
    /* Primary palette derived from the new HudHud logo.
       A vibrant teal is used as the main brand colour,
       complemented by a warm orange accent. The background
       has been shifted to a deep navy to better suit the new colour
       scheme. */
    --primary-color: #00bfa5;      /* teal for headings, icons and highlights */
    --secondary-color: #ff6d3f;    /* orange accent for buttons and emphasis */
    --bg-color: #021a2f;           /* dark navy background */
    --text-color: #e6e6e6;         /* light text for contrast */
    /* Updated fonts to use modern, attractive Poppins */
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Montserrat', sans-serif;
}

/* Global reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    scroll-behavior: smooth;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
}

    .nav-logo img {
        /* Increase logo size further so it stands out noticeably in the navigation */
        /* Make the logo slightly larger (140px) to improve brand visibility */
        height: 140px;
        margin-right: 0;
    }

.nav-logo span {
    font-family: var(--heading-font);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

nav ul {
    display: flex;
    list-style: none;
}

nav li {
    margin-left: 1.5rem;
}

nav a {
    font-family: var(--heading-font);
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--secondary-color);
}

/* Mobile Navigation */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    height: 3px;
    width: 25px;
    background: var(--primary-color);
    margin: 4px 0;
    transition: all 0.3s;
}

@media (max-width: 768px) {
    nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        align-items: center;
        display: none;
    }

    nav ul.active {
        display: flex;
    }

    nav li {
        margin: 1rem 0;
    }

    .menu-toggle {
        display: flex;
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*
     * Lighten the hero overlay so the underlying illustrations remain visible on all pages.
     * A lower opacity and subtle blur allows the swirling patterns and imagery to shine
     * through without washing out the text.  This change addresses user feedback
     * that themes were not visible except on the home page.
     */
    /*
     * Reduce overlay opacity further to bring out the page illustrations while keeping text readable.
     * A 0.25 alpha allows the vibrant hero artwork to remain visible without sacrificing contrast.
     */
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(1px);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    /* Add extra top padding to ensure headings do not overlap with the taller fixed header */
    padding: 6rem 1rem 0;
}

.hero h1 {
    font-family: var(--heading-font);
    /* Increase hero title size slightly for better visibility */
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    /* Add a subtle shadow so text stands out against detailed backgrounds */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.hero p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Button */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    background-color: var(--secondary-color);
    color: var(--bg-color);
    font-family: var(--heading-font);
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn:hover {
    /* darken the accent colour on hover */
    background-color: #e05b33;
}

/* Quote Button in header */
.quote-btn {
    margin-left: 1rem;
    padding: 0.5rem 1rem;
    background-color: var(--secondary-color);
    color: var(--bg-color);
    border-radius: 20px;
    font-family: var(--heading-font);
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.quote-btn:hover {
    background-color: #e05b33;
}

@media (max-width: 768px) {
    .quote-btn {
        display: none;
    }
}

/* Generic Section */
/* Reduce vertical padding on sections to minimize empty space */
.section {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    /* Apply a subtle background pattern derived from the brand colours */
    background-color: var(--bg-color);
    background-image: url('assets/section-bg.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    /* Blend the pattern with the dark background to maintain readability */
    background-blend-mode: overlay;
}

.section h2 {
    font-family: var(--heading-font);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-align: center;
}

/* Adjust paragraph spacing to prevent large gaps between content blocks */
.section p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 1.5rem;
    font-size: 1rem;
}

/* Cards */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.card {
    background-color: #031c2e;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #0a2a3d;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: var(--heading-font);
}

.card p {
    margin-bottom: 1rem;
}

.card ul {
    list-style: none;
    /* Center the list within cards for better alignment */
    padding-left: 0;
    text-align: center;
}

.card ul li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 0;
}

.card ul li::before {
    content: "•";
    /* Use inline-block so the bullet stays close to the text even when centered */
    display: inline-block;
    margin-right: 0.4rem;
    color: var(--primary-color);
    position: static;
}

/* Why Choose section */
.why {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.why-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.why-item span {
    font-size: 1.5rem;
    color: var(--primary-color);
    line-height: 1;
}

.why-item p {
    font-size: 1rem;
}

/* Stats Grid (About page) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stats-grid h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-family: var(--heading-font);
}

.stats-grid p {
    font-size: 1rem;
}

/* Clients Section */
.clients {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
}

.clients img {
    max-height: 80px;
    max-width: 150px;
    opacity: 0.8;
    filter: grayscale(100%);
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.clients img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* Full width illustrative images */
.full-image {
    width: 100%;
    border-radius: 8px;
    margin-top: 4rem;
    margin-bottom: 2rem;
    display: block;
}

/* Footer */
footer {
    background-color: #011e33;
    padding: 2rem;
    color: #99aab8;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: space-between;
}

.footer-section {
    flex: 1 1 200px;
}

.footer-section h4 {
    font-family: var(--heading-font);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul a {
    color: #9eb4c8;
    transition: color 0.3s;
}

.footer-section ul a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
}

/* Form Styles (Contact) */
form {
    max-width: 600px;
    margin: 0 auto;
}

form label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--heading-font);
    color: var(--primary-color);
}

input,
textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #0a2a3d;
    border-radius: 4px;
    background-color: #031c2e;
    color: var(--text-color);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

form button {
    display: inline-block;
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 30px;
    background-color: var(--secondary-color);
    color: var(--bg-color);
    font-family: var(--heading-font);
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #e05b33;
}

/*
 * Service headings with images on the Services page
 * Displays the service image next to the heading and description in a flexible row
 */
.service-heading {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.service-heading img {
    max-width: 160px;
    height: auto;
    border-radius: 8px;
    flex-shrink: 0;
}

.service-heading h2 {
    font-family: var(--heading-font);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.service-heading p {
    font-size: 1rem;
    margin-bottom: 0;
    line-height: 1.6;
    max-width: 600px;
}

@media (max-width: 768px) {
    .service-heading {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .service-heading img {
        max-width: 140px;
        margin: 0 auto;
    }

    .service-heading p {
        text-align: center;
    }
}

/* AI Agents icon grid */
.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    justify-content: center;
    align-items: flex-start;
    margin-top: 2rem;
}

.icon-item {
    text-align: center;
}

.icon-item img {
    height: 60px;
    width: 60px;
    margin-bottom: 1rem;
}

    /* Font Awesome icons inside the icon grid */
    .icon-item i {
        font-size: 3rem;
        line-height: 1;
        display: inline-block;
        margin-bottom: 1rem;
        color: var(--primary-color);
    }

.icon-item h3 {
    font-family: var(--heading-font);
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.icon-item p {
    font-size: 0.95rem;
    color: var(--text-color);
}

/* Partners logo section */
.partners {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.partners img {
    max-height: 60px;
    max-width: 120px;
    /* Show partner logos in full color while maintaining subtle transparency */
    opacity: 0.9;
    filter: grayscale(0%);
    transition: opacity 0.3s ease;
}

/* QR code styling for contact page */
.qr-code {
    width: 180px;
    height: auto;
    margin-top: 1rem;
    border-radius: 8px;
	margin-bottom: 10px;
}

/* Social links container (e.g., WhatsApp) */
.social-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
	font-size: 24px;
}

/* Utility class to center unordered lists on the page */
.centered-list {
    max-width: 800px;
    margin: 0 auto;
    padding-left: 0;
    list-style: none;
    /* Use default disc bullets for readability */
}

.centered-list li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.2rem;
}

.centered-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Styled list for mission and values with icons */
.mission-list,
.values-list {
    /* Limit the width of the mission and values lists to enhance centring */
    max-width: 700px;
    list-style: none;
    padding: 0;
    /* Make the list a block with intrinsic width so it centers via auto margins */
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.mission-list li,
.values-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.mission-list li i,
.values-list li i {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-top: 0.15rem;
}

.social-links a {
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--secondary-color);
}

.partners img:hover {
    opacity: 1;
}

/* QR code and social icon container on contact page */
.qr-and-social {
    display: flex;
    /*
     * Arrange the LinkedIn QR code and WhatsApp icon horizontally with spacing.
     * A row layout ensures the icon appears beside the QR image rather than below it.
     */
    flex-direction: column;
    align-items: center;
	justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
	text-align: center;
	margin: 0 auto;
}
/* Make the WhatsApp icon larger for better visibility */
.qr-and-social .social-links a {
    /* Make the WhatsApp icon larger for greater prominence */
    font-size: 3.2rem;
}