@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #00aeff;
    --dark-bg: #0a0f1f;
    /* This will be the left color of the hero gradient */
    --medium-dark-bg: #0f172a;
    --card-bg: #1e293b;
    --text-light: #e2e8f0;
    --text-muted: #94a3b8;
    --gradient-start: #4f46e5;
    /* Purple */
    --gradient-end: #00aeff;
    /* Blue */
    --hero-image-bg-right: #040617;
    /* Right color of the hero gradient */
    /* --hero-edge-dark-bg: #060914; */
    /* This variable is no longer directly used for hero bg */
    --card-bg-rgb: 30, 41, 59;
    /* Assuming #1e293b */
    --medium-dark-bg-rgb: 15, 23, 42;
    /* Assuming #0f172a */
    /* RGB versions for our palette, and a new Teal */
    --primary-color-rgb: 0, 174, 255;
    /* For #00aeff (Blue) */
    --gradient-start-rgb: 79, 70, 229;
    /* For #4f46e5 (Purple) */
    --vibrant-teal: #00f0d0;
    /* Vibrant Teal for neon hint */
    --vibrant-teal-rgb: 0, 240, 208;
    /* RGB for Vibrant Teal */
    --accent-yellow: #FFEE58;
    /* Vibrant Yellow for accents */
    --accent-yellow-rgb: 255, 238, 88;
    /* RGB for Vibrant Yellow */
    --gradient-border-color-1: #2B7B81;
    --gradient-border-color-2: #EB9959;
    --accent-green: #66DE93;
    /* New accent green */
    --accent-orange: #FF9800;
    /* New accent orange */
    --icon-teal: #2B7B81;
    /* New color for icons */
}

body,
html {
    overflow-x: hidden;
    overflow-y: visible;
    height: auto;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.8;
    color: #ffffff;
    background-color: var(--dark-bg);
    background-image: url('https://www.transparenttextures.com/patterns/stardust.png');
    /* Restored speckled background */
    position: relative;
}

/* Subtle background patterns */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.03), transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.03), transparent 30%);
    background-repeat: no-repeat;
    z-index: -1;
    /* Behind content */
    pointer-events: none;
}

header {
    background: transparent;
    color: #fff;
    padding: 1.5rem 5%;
    /* Use percentage for padding */
    position: absolute;
    width: 90%;
    /* Adjust width to account for padding */
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    font-size: 2rem;
    /* Slightly larger logo */
    font-weight: 700;
    color: #fff;
}

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

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    /* Style for active link */
    color: var(--primary-color);
}

/* Hamburger Menu Icon (Initially hidden on desktop) */
.hamburger-menu {
    display: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #fff;
    transition: all 0.3s ease-in-out;
}

/* Styles for when the mobile menu is open (example) */
.hamburger-menu.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.open span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Digital Constellation Background for Hero */
.constellation-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* Behind hero-content */
    overflow: hidden;
    pointer-events: none;
    /* Allow clicks to pass through */
}

.particle {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(var(--primary-color-rgb), 1);
    /* DEBUG: Fully opaque */
    width: var(--size, 10px);
    /* DEBUG: Default size increased */
    height: var(--size, 10px);
    /* DEBUG: Default size increased */
    box-shadow:
        0 0 5px rgba(var(--primary-color-rgb), 0.7),
        0 0 10px rgba(var(--primary-color-rgb), 0.5),
        0 0 15px rgba(var(--primary-color-rgb), 0.3);
    opacity: 1;
    /* DEBUG: Start fully opaque */
    animation-name: particle-drift;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    will-change: transform, opacity;
}

@keyframes particle-drift {

    0%,
    100% {
        transform: translate(0, 0) scale(0.8);
        opacity: 1;
        /* DEBUG: Fully opaque */
    }

    25% {
        transform: translate(calc(var(--drift-x) * 0.25), calc(var(--drift-y) * 0.25)) scale(1.1);
        opacity: 1;
        /* DEBUG: Fully opaque */
    }

    50% {
        transform: translate(calc(var(--drift-x) * 0.5), calc(var(--drift-y) * 0.5)) scale(1);
        opacity: 1;
        /* DEBUG: Fully opaque */
    }

    75% {
        transform: translate(calc(var(--drift-x) * 0.75), calc(var(--drift-y) * 0.75)) scale(0.9);
        opacity: 1;
        /* DEBUG: Fully opaque */
    }
}

#hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 5% 0px;
    min-height: 78vh;
    background:
        radial-gradient(circle at top right, rgba(29, 78, 216, 0.08), transparent 60%),
        linear-gradient(to right, var(--dark-bg), var(--hero-image-bg-right));
    text-align: left;
    position: relative;

    /* Background image fix */
    background-image: url("images/Group9.png");
    background-size: contain;
    background-position: top right;
    background-repeat: no-repeat;
    /* Ensure image does not tile */
}

#hero::after {
    /* Decorative lines like in the image */
    content: '';
    position: absolute;
    top: 10%;
    right: 5%;
    width: 200px;
    height: 200px;
    border: 1px solid rgba(0, 174, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

#hero .hero-content {
    max-width: 55%;
    /* Adjusted width */
    z-index: 1;
    position: relative;
    /* Ensure z-index stacking works correctly */
}

#hero h1 {
    font-size: 2.7rem;
    margin-top: 50px;
    margin-bottom: 15px;
    color: #fff;
    font-weight: 700;
    line-height: 1.25;
}

/* #hero h1 .highlight {
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
} */

#typewriter-text {
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    font-weight: bold;
}

.cursor {
    display: inline-block;
    color: #fff;
    animation: blink 1s step-start infinite;
    font-weight: bold;
    margin-left: 2px;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}


#hero p {
    font-size: 1rem;
    /* Slightly larger */
    color: var(--text-muted);
    /* margin-bottom: 35px; */
    max-width: 500px;
    /* Adding text gradient */
    background: linear-gradient(90deg, var(--text-light), var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

/* Hero Mini-Cards (General Styles) */
.hero-mini-cards {
    display: flex;
    justify-content: flex-start;
    /* Align to the left of the hero-content */
    flex-wrap: wrap;
    /* Allow cards to wrap to the next line */
    gap: 15px;
    /* Space between mini-cards */
    margin-top: 50px;
    /* Increased space above the mini-cards */
    margin-bottom: 30px;
    /* Space below the mini-cards, before the CTA button */
}

.mini-card {
    background-color: rgba(255, 255, 255, 0.05);
    /* Subtle background like in the image */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 9px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    /* Space between icon and text */
    color: var(--text-light);
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
    /* Default flex properties, can be overridden by :nth-child */
    flex-grow: 0;
    flex-shrink: 1;
    box-sizing: border-box;
    /* Include padding and border in the element's total width and height */
}

.mini-card:nth-child(1) {
    flex: 0 0 25%;
    /* No grow, no shrink, basis is 25% of the container width */
    /* min-width: 120px; /* Optional: ensure a minimum reasonable width */
}

.mini-card:nth-child(2) {
    flex: 0 0 30%;
    /* No grow, no shrink, basis is 50% of the container width */
    /* min-width: 250px; /* Optional: ensure a minimum reasonable width */
}

.mini-card:nth-child(3) {
    flex-basis: 70%;
    /* Take full width on the next line */
    min-height: 70px;
}

.mini-card:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.mini-card i {
    font-size: 1.1rem;
    color: var(--primary-color);
    /* Use primary color for icons */
}

.cta-button {
    display: inline-block;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    color: #fff;
    padding: 14px 35px;
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 25px rgba(var(--gradient-start), 0.3);
}

.cta-button:disabled {
    background: #555;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

#hero .hero-image {
    flex-basis: 40%;
    min-height: 450px;
    background-size: contain;
    /* or 'cover' depending on image aspect ratio */
    background-repeat: no-repeat;
    background-position: center right;
    position: relative;
    z-index: 0;
}

section {
    padding-top: 50px;
    /* Reduced top padding */
    padding-bottom: 80px;
    /* Maintained original bottom padding */
    padding-left: 5%;
    /* Maintained original side padding */
    padding-right: 5%;
    /* Maintained original side padding */
    margin-bottom: 0;
    background: transparent;
}

section h2 {
    text-align: left;
    margin-bottom: 50px;
    /* Increased margin */
    font-size: 2.8rem;
    /* Increased size */
    color: #fff;
    font-weight: 600;
}

/* ****************************************************** */
/* WHAT WE OFFER SECTION */

#what-we-offer {
    position: relative;
    padding: 0px 5%;
    color: #fff;
    top: -10px;
    z-index: 1;
}

#what-we-offer .imaginex-content {
    position: relative;
    background: none;
    /* Remove direct solid background */
    overflow: hidden;
    /* Ensures pseudo-element doesn't overflow */
}

#what-we-offer .imaginex-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.05);
    /* Your subtle tint */
    mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 0) 100%);
    -webkit-mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
    z-index: 0;
    backdrop-filter: blur(20px);
}

#what-we-offer h2 {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 50px;
    font-size: 2.8rem;
    color: #fff;
    /* Ensuring heading color is white, can be var(--text-light) */
    font-weight: 600;
    padding-bottom: 0;
    border-bottom: 2px solid rgba(var(--primary-color-rgb), 0.3);
    display: inline-block;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.offerings-list {
    padding: 0;
    list-style: none;
    display: flex;
    /* Added */
    flex-wrap: nowrap;
    /* Changed from wrap for desktop single row */
    justify-content: space-between;
    /* Changed from space-around for desktop */
    gap: 20px;
    /* Added space between cards */
}

.offerings-list li {
    flex: 1;
    display: flex;
    backdrop-filter: blur(48px);
    background-color: rgb(148 163 184 / 10%);
}

.offerings-list li h3 {
    color: var(--text-light);
    /* White H3 headers */
    font-size: 1.4rem;
    /* Slightly increased size */
    margin-top: 0;
    font-weight: 600;
    margin-bottom: 0px;
}

.offerings-list li p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.offering-card {
    background-color: transparent;
    /* Remove card background */
    /* border: 1px solid rgba(255, 255, 255, 0.15); */
    /* Replaced by new border technique */
    /* border-top: 3px solid var(--primary-color); */
    /* Removed this */
    border-radius: 10px;
    padding: 30px;
    width: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* align-items: center; */
    /* Uncomment if all card content should be centered */
    /* position: relative; */
    /* No longer needed for pseudo-element */
    /* z-index: 0; */
    /* No longer needed */

    border: 1px solid var(--primary-color);
    /* Bright blue border */
    /* Removed background-image, background-origin, background-clip for gradient border */
}

.offering-card:hover {
    /* transform: scale(1.03); */
    /* Slight scale up */
    /* box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3); */
    /* More prominent shadow */
    /* border-color: rgba(0, 174, 255, 0.5); */
    /* Removed, gradient handles border color */
}

.offering-card .offering-card-icon {
    margin-top: 5px;
    /* Space below h3 */
    margin-bottom: 15px;
    /* Space above p */
    text-align: center;
    /* CHANGED from left to center */
}

.offering-card .offering-card-icon i {
    font-size: 2rem;
    /* Larger icon size */
    color: var(--icon-teal);
    /* Teal icons (#2B7B81) */
    display: inline-block;
    /* Allows some box model properties if needed, good default */
}

.skills-link {
    color: white;
    pointer-events: auto;
    position: relative;
    z-index: 1;
    /* text-decoration: none; */
}

.skills-link:hover {
    color: #00bfff;
    text-decoration: underline;
}


/* ****************************************************** */
/* WHAT IS IMAGINEX SECTION */

#what-is-imaginex {
    /* width: 100%; */
    /* margin: 0; */
    /* padding: 0; */
    position: relative;
    overflow-y: visible;
    /* allows background circles to overflow */
    overflow-x: hidden;
    margin-top: 100px;
    padding-bottom: 20px;
    /* margin-bottom: 60px; */
    /* prevent horizontal scrollbars */
    /* border: 1px solid #fff; */
    /* border-radius: 10px; */
    /* padding-top: 80px; */
    /* padding-bottom: 80px; */
    /* background: radial-gradient(ellipse at 20% 50%, rgba(43, 123, 129, 0.3) 0%, rgba(43, 123, 129, 0.24) 40%, transparent 70%), radial-gradient(ellipse at 80% 50%, rgba(255, 209, 102, 0.22) 0%, rgba(235, 153, 89, 0.16) 40%, transparent 70%), rgba(255, 255, 255, 0.1); */
}

.morphing-circles-background {
    position: absolute;
    left: 35%;
    width: 70%;
    height: 90vh;
    pointer-events: none;
    z-index: 0;
}

.morphing-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    /* Start transparent, fade in with animation */
    animation: morph-animate 15s infinite;
    will-change: transform, opacity;
    /* Hint for performance */
}

.morphing-circle.circle-1 {
    width: 200px;
    height: 200px;
    background-color: rgba(0, 174, 255, 0.12);
    top: 10%;
    left: 30%;
    animation-duration: 18s;
    animation-delay: 0s;
}

.morphing-circle.circle-2 {
    width: 450px;
    height: 450px;
    background-color: rgba(0, 174, 255, 0.12);
    /* blue */
    top: 40%;
    left: 50%;
    animation-duration: 20s;
    animation-delay: -5s;
    /* Start partway through its cycle */
}

.morphing-circle.circle-3 {
    width: 250px;
    height: 250px;
    background-color: rgba(0, 174, 255, 0.12);
    /* blue */
    top: 60%;
    left: 20%;
    animation-duration: 16s;
    animation-delay: -10s;
}

.morphing-circle.circle-4 {
    width: 300px;
    height: 300px;
    background-color: rgba(0, 174, 255, 0.12);
    /* blue */
    top: 0%;
    left: 70%;
    animation-duration: 22s;
    animation-delay: -3s;
}

@keyframes morph-animate {

    0%,
    100% {
        transform: scale(1) translate(0px, 0px) rotate(0deg);
        opacity: 0.25;
        /* Increased opacity */
    }

    20% {
        transform: scale(1.3) translate(40px, -60px) rotate(45deg);
        opacity: 0.35;
        /* Increased opacity */
    }

    40% {
        transform: scale(0.8) translate(-50px, 30px) rotate(-30deg);
        opacity: 0.2;
        /* Increased opacity */
    }

    60% {
        transform: scale(1.2) translate(30px, 50px) rotate(60deg);
        opacity: 0.3;
        /* Increased opacity */
    }

    80% {
        transform: scale(0.9) translate(-20px, -40px) rotate(-10deg);
        opacity: 0.22;
        /* Increased opacity */
    }
}

#what-is-imaginex .imaginex-intro-content {
    max-width: 730px;
    margin-right: 20%;
    padding: 20px 6%;
    text-align: left;
    border-radius: 10px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(1px);
}

#what-is-imaginex h2 {
    text-align: left;
    margin-top: 30px;
    margin-bottom: 50px;
    font-size: 1.8rem;
    font-weight: 600;
    padding-bottom: 0;
    display: inline-block;
    position: relative;
    border-bottom: 2px solid white;
    /* background: linear-gradient(to right, #17abef, #ea7b26); */
    /* background: linear-gradient(to right, #40ced8, #f19045, #9c27b0); */
    -webkit-background-clip: text;
    background-clip: text;
    /* color: transparent; */
    color: white;
}

#what-is-imaginex .highlight-text {
    font-weight: 700;
    color: transparent;
    background: linear-gradient(to right, #17abef, #ea7b26);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

#what-is-imaginex .imaginex-intro-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.7;
    text-align: left;
}

.subskills-list {
    list-style-type: circle;
    padding-left: 3rem;
    margin-top: 0.4rem;
    margin-bottom: 1.2rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ****************************************************** */
/* WHO IT'S FOR SECTION */

#who-its-for {
    padding-top: 0px;
    padding-bottom: 120px;
    position: relative;
    overflow: hidden;
    /* Keep containing pseudo-elements if they don't extend beyond bounds */
    z-index: 0;
    /* Remains behind other sections like hero, but allows internal layering */
}

#who-its-for h2,
#who-its-for .trait-cards-container {
    position: relative;
    z-index: 2;
    /* Ensure content is above pseudo-elements and main background */
}

#who-its-for h3 {
    font-size: 1.8rem;
    text-align: center;
}

#who-its-for h2 {
    text-align: center;
    margin-top: 0px;
    margin-bottom: 50px;
    /* Increased margin for better spacing from cards */
    font-size: 2.8rem;
    padding-bottom: 0;
    border-bottom: 2px solid rgba(var(--primary-color-rgb), 0.3);
    display: inline-block;
    /* To make border only as wide as text */
    position: relative;
    /* For potential future pseudo-elements */
    left: 50%;
    /* Start positioning for centering */
    transform: translateX(-50%);
    /* Center the inline-block element */
    color: #fff;
    /* Added from previous version if needed */
    font-weight: 600;
    /* Added from previous version if needed */
}

/* Your existing styles */
.layout-3-2 {
    padding: 20px 10%;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.layout-3-2>.trait-card:nth-child(-n+3) {
    flex: 0 1 calc(33.33% - 13.33px);
}

.layout-3-2>.trait-card:nth-child(n+4) {
    flex: 0 1 calc(50% - 10px);
}

.trait-card {
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: rgba(var(--card-bg-rgb), 0.15);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.imaginex-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.imaginex-cards .card {
    background: var(--card-bg);
    padding: 35px;
    border-radius: 16px;
    text-align: left;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.imaginex-cards .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.35);
}

.imaginex-cards .card-icon-placeholder {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    height: 60px;
    display: flex;
    align-items: center;
}

.imaginex-cards .card-icon-placeholder img,
.imaginex-cards .card-icon-placeholder svg {
    height: 50px;
    width: auto;
}

.imaginex-cards .card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--text-light);
    font-size: 1.6rem;
    font-weight: 600;
}

.imaginex-cards .card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}


/* ****************************************************** */
/* HOW IT WORKS SECTION */

#how-it-works {
    padding-top: 0px;
    padding-bottom: 100px;
    text-align: center;
    /* background-image: linear-gradient(160deg, var(--medium-dark-bg) 0%, var(--dark-bg) 70%, #070b16 100%); */
    background-color: rgb(15 23 42 / 60%);
    position: relative;
    overflow: hidden;
}

#how-it-works h2 {
    text-align: center;
    margin-top: 80px;
    margin-bottom: 20px;
    font-size: 2.8rem;
    color: #fff;
    font-weight: 600;
    padding-bottom: 0;
    border-bottom: 3px solid var(--primary-color);
    display: inline-block;
    position: relative;
}

.icon {
    padding-right: 5px;
}

#how-it-works h2 .section-icon {
    margin-right: 12px;
    font-size: 1em;
    vertical-align: baseline;
}

#how-it-works h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #fff;
}

.how-it-works-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.how-it-works-option {
    flex: 1 1 300px;
    background-color: rgba(var(--card-bg-rgb, 30, 41, 59), 0.6);
    border: 1px solid rgb(0, 174, 255);
    padding: 30px;
    border-radius: 12px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.how-it-works-option h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: #fff;
}

.how-it-works-icon {
    color: #2b7b81;
}

.how-it-works-option p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.horizontal-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 20px;
}

.circle-style-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 25px;
}

.step-block {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.step-circle {
    width: 44px;
    height: 100%;
    background-color: #2b7b81;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 4px;
    /* slightly centers it with multiline content */
}

.step-content {
    text-align: left;
}

.step-content h4 {
    margin: 0 0 6px;
    font-size: 1.2rem;
    color: #fff;
}

.step-content p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.how-it-works-cta {
    margin-top: 40px;
    text-align: center;
}

.cta-button-wrapper {
    text-align: center;
    margin-top: 40px;
}

.how-it-works-cta .cta-button {
    padding: 14px 35px;
    font-size: 1.1rem;
}

.how-it-works-cta .cta-icon {
    margin-right: 10px;
    font-size: 1.1em;
}

.step-content a {
    color: #00bfff;
    /* Light blue for visibility */
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    /* display: inline-block; */
    margin-top: 10px;
    font-size: 0.95rem;
    /* float: right */
}

.step-content a:hover {
    color: #ffffff;
    text-decoration: underline;
    transform: translateX(4px);
}


/* ****************************************************** */
/* FOOTER */

footer {
    text-align: center;
    padding: 40px 5%;
    background: var(--medium-dark-bg);
    color: var(--text-muted);
    margin-top: 0;
    border-top: 1px solid var(--card-bg);
}

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

footer a:hover {
    color: #fff;
}

/* ****************************************************** */
/* Mobile Responsiveness */

@media (max-width: 992px) {
    header {
        padding: 1.5rem 3%;
        width: 94%;
    }

    #hero .hero-content {
        max-width: 100%;
    }

    #hero h1 {
        font-size: 3.2rem;
    }

    #hero .hero-image {
        flex-basis: auto;
        width: 80%;
        max-width: 400px;
        margin: 0 auto;
        min-height: 300px;
        background-position: center;
    }

    section h2 {
        font-size: 2.4rem;
        text-align: center;
    }

    .imaginex-cards {
        gap: 25px;
    }

    .imaginex-cards .card {
        flex-basis: 100%;
    }

    section h2 {
        /* This is a duplicate rule for section h2, might need cleanup */
        font-size: 2.2rem;
    }

    /* Tablet layout for offerings cards */
    .offerings-list {
        flex-wrap: wrap;
        justify-content: space-around;
    }

    .offerings-list li {
        flex-grow: 0;
        flex-shrink: 1;
        flex-basis: calc(50% - 10px);
        /* 2 cards per row with 20px gap */
    }
}

@media (max-width: 780px) {
    #what-is-imaginex .imaginex-intro-content {
        margin-right: 0px;
    }
}

@media (min-width: 770px) {
    #hero .hero-image {
        display: none;
        /* Hide .hero-image on desktop/larger screens */
    }
}

@media (max-width: 768px) {
    header {
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
    }

    nav {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .hamburger-menu {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--medium-dark-bg);
        position: absolute;
        top: 70px;
        left: 0;
        padding: 10px 0;
        z-index: 999;
    }

    nav ul.mobile-menu-open {
        display: flex;
    }

    nav ul li {
        margin: 10px 0;
        text-align: center;
    }

    #hero {
        display: flex;
        flex-direction: column;
        align-items: center;
        background-image: none;
        padding-top: 60px;
        padding-left: 0;
        padding-right: 0;
        min-height: auto;
    }

    #hero .hero-content {
        position: relative;
        z-index: 1;
        width: 100%;
        max-width: 600px;
        padding-left: 20px;
        padding-right: 20px;
        box-sizing: border-box;
    }

    #hero .hero-content h1 {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    #hero .hero-content p {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    #hero .hero-image {
        background-image: url("images/Group10.png");
        background-size: 65vh;
        background-position: bottom right;
        background-repeat: no-repeat;
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding-bottom: 20px;
        padding-left: 0;
        padding-right: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        box-sizing: border-box;
        min-height: 450px;
    }

    #hero .hero-image>.hero-mini-cards {
        margin-top: 0;
        margin-bottom: 0;
        width: 100%;
        padding-left: 50px;
        padding-right: 20px;
        box-sizing: border-box;
    }

    #hero .hero-image>.hero-mini-cards .mini-card:nth-child(1) {
        width: 45vw;
    }

    #hero .hero-image>.hero-mini-cards .mini-card:nth-child(2) {
        width: 35vw;
    }

    #hero .hero-image>.hero-mini-cards .mini-card:nth-child(3) {
        width: 40vw;
    }

    .hero-mini-cards {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .mini-card {
        padding: 10px 15px;
        width: auto;
        max-width: 100%;
    }

    #hero h1 {
        font-size: 2.5rem;
    }

    #hero p {
        font-size: 1rem;
    }

    .cta-button {
        padding: 10px 25px;
        font-size: 1rem;
    }

    section h2 {
        /* This also appears to be a duplicate general rule for section h2 */
        font-size: 2rem;
        text-align: center;
    }

    .imaginex-cards .card {
        padding: 20px;
    }

    .imaginex-cards .card h3 {
        font-size: 1.3rem;
    }

    #how-it-works p {
        font-size: 1.1rem;
    }

    #hero .hero-content p {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    #hero p {
        font-size: 1rem;
    }

    .imaginex-intro-content p {
        font-size: 1rem;
        text-align: left;
    }

    .offerings-list li h3 {
        font-size: 1.2rem;
    }

    .offerings-list li,
    .who-its-for-list li {
        /* .who-its-for-list might be an old class */
        font-size: 1rem;
    }

    #what-we-offer,
    #who-its-for {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    #what-is-imaginex h2 {
        font-size: 2.5rem;
    }

    .imaginex-intro-content p {
        /* Another rule for this, check for consolidation */
        font-size: 1.05rem;
        text-align: center;
    }

    #what-we-offer h2,
    #who-its-for h2 {
        font-size: 2.2rem;
        margin-bottom: 30px;
    }

    .offerings-list {
        /* grid-template-columns: 1fr; */
        /* Commented out, assuming flex is intended */
        gap: 20px;
        /* This rule for .offerings-list already exists here, ensure flex-wrap is still wrap if not overridden by 992px rule */
    }

    .offerings-list li h3 {
        font-size: 1.3rem;
    }

    .offerings-list li p,
    .who-its-for-list li {
        /* .who-its-for-list might be an old class */
        font-size: 1rem;
    }

    #who-its-for>p {
        font-size: 1.05rem;
    }
}

@media (max-width: 710px) {
    .offerings-list {
        gap: 20px;
    }

    .offerings-list li {
        flex-basis: 100%;
        /* Each li takes full width */
    }
}

@media (max-width: 700px) {
    .layout-3-2 {
        padding: 20px 20px;
        /* smaller side padding for mobile */
        width: 100%;
        /* make container full width */
        max-width: 100%;
        /* prevent max-width limits */
    }

    .layout-3-2>.trait-card {
        flex: 0 1 100% !important;
        max-width: 100% !important;
    }
}

@media (max-width: 480px) {
    header .logo {
        font-size: 1.5rem;
    }

    #hero h1 {
        font-size: 2rem;
    }

    #hero .hero-image {
        min-height: 200px;
    }
}