/* General Styles */
body, html {
        font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;    width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        overflow-x: hidden;
        background-color: var(--color-bg);
        color: var(--color-text-secondary);
        font-stretch: semi-expanded;
        -webkit-font-smoothing: antialiased;
        text-rendering: optimizeLegibility;
}

p { line-height:1.5; }

/* Design Tokens */
:root {
    --color-brand:#0B3D91;
    --color-accent:#F2AA4C;
    --color-bg:#FFFFFF;
    --color-bg-alt:#f5f7fb;
    --color-surface:#021A4E;
    --color-surface-soft: #08336A;
    --color-text:#0B3D91;
    --color-text-secondary:#4c5563;
    --color-border: rgba(0,0,0,0.08);
    --gradient-accent: linear-gradient(90deg,#0B3D91 0%, #5a4b66 50%, #F2AA4C 100%);
    --shadow-sm:0 1px 2px rgba(0,0,0,0.08),0 1px 3px rgba(0,0,0,0.06);
    --shadow-md:0 4px 12px -2px rgba(0,0,0,0.15);
    --shadow-glow:0 0 0 1px rgba(255,255,255,0.05),0 4px 24px -4px rgba(11,61,145,0.45);
    --radius-xs:4px;
    --radius-sm:6px;
    --radius-md:10px;
    --radius-lg:18px;
    --transition-base: .4s cubic-bezier(.4,0,.2,1);
    --fw-bold:600;
    --fw-extrabold:700;
    --blur-glass:18px;
    --backdrop-glass: saturate(180%) blur(var(--blur-glass));
    --hero-font-min: clamp(2.2rem, 5vw + .5rem, 4rem);
    --hero-sub-min: clamp(1.05rem, 1.2vw + .8rem, 1.35rem);
}

[data-theme="dark"] {
    --color-brand:#f5f7fa;
    --color-bg:#070b12;
    --color-bg-alt:#0f1622;
    --color-surface:#132035;
    --color-surface-soft:#1c2b42;
    --color-text:#f5f7fa;
    --color-text-secondary:#c0c6cf;
    --color-border: rgba(255,255,255,0.08);
    --shadow-sm:0 1px 2px rgba(0,0,0,0.6),0 1px 3px rgba(0,0,0,0.4);
    --shadow-md:0 4px 16px -2px rgba(0,0,0,0.7);
    --shadow-glow:0 0 0 1px rgba(255,255,255,0.05),0 4px 28px -4px rgba(0,153,255,0.4);
    --gradient-accent: linear-gradient(90deg,#0B76FF 0%, #5a4b96 50%, #F2AA4C 100%);
}

/* Smooth theme transitions */
html[data-theme] body, html[data-theme] .theme-transition {
    transition: background-color .6s ease, color .6s ease, border-color .6s ease;
}

/* Accessible skip link */
.skip-link { position:absolute; left:-999px; top:auto; width:1px; height:1px; overflow:hidden; }
.skip-link:focus { position:fixed; left:1rem; top:1rem; width:auto; height:auto; background:#000; color:#fff; padding:.75rem 1rem; z-index:9999; border-radius:var(--radius-sm); }

/* Hide the checkbox used for the hamburger menu */
#menu-toggle {
    display: none;
}

/* Hamburger menu button container */
.menu-button-container {
    display: none;
    height: 44px;
    width: 44px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-left: auto;
}

/* Hamburger menu button lines */
.menu-button,
.menu-button::before,
.menu-button::after {
    display: block;
    background-color: var(--color-text);
    position: relative;
    height: 3px;
    width: 24px;
    border-radius: 2px;
    transition: var(--transition-base);
}

.menu-button::before,
.menu-button::after {
    content: '';
    position: absolute;
    left: 0;
}

.menu-button::before {
    top: -8px;
}

.menu-button::after {
    top: 8px;
}

/* Animation when menu is open */
#menu-toggle:checked + .menu-button-container .menu-button::before {
    transform: rotate(45deg) translate(6px, 6px);
}

#menu-toggle:checked + .menu-button-container .menu-button {
    background: transparent;
}

#menu-toggle:checked + .menu-button-container .menu-button::after {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Hide the overlay if it's not needed */
.overlay {
    display: none;
}

/* Header */
header {
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    color: var(--color-text);
    padding: .85em 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom:1px solid var(--color-border);
}
[data-theme="dark"] header { background: rgba(13,22,35,0.75); }

main {
    padding-top: 4em; /* Adjust based on the actual height of your header */
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    padding: 0 1em;
}

header nav {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
}

header nav a.logo {
    font-size: 1.15rem;
    font-weight: var(--fw-extrabold);
    text-decoration: none;
    color: var(--color-brand);
    letter-spacing:.5px;
    position:relative;
    min-width:44px;
    min-height:44px;
    display: flex;
    align-items: center;
    justify-content: center;
}
header nav a.logo:after { content:""; position:absolute; left:0; bottom:-4px; height:2px; width:0; background:var(--gradient-accent); transition:var(--transition-base); }
header nav a.logo:hover:after { width:100%; }

header nav ul {
    list-style: none;
    display: flex;
    gap: 1em;
    margin: 0;
    padding: 0;
    margin-left: auto; /* Pushes navigation items to the right */
}

header nav ul li a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    padding:.55rem .9rem;
    border-radius: var(--radius-sm);
    position:relative;
    font-size:.95rem;
    line-height:1.2;
    transition:var(--transition-base);
    text-align: center;
    justify-content: center;
    align-items: center;
    display: flex;
    min-width:44px;
    min-height:44px;
}
header nav ul li a:focus-visible, header nav ul li a:hover {
    color: var(--color-brand);
    background: linear-gradient(90deg,rgba(11,61,145,0.08),rgba(90,75,102,0.08));
    outline:none;
}
header nav ul li a:active { transform: translateY(1px); }

/* Theme Toggle */
.theme-toggle-wrapper { display:flex; align-items:center; justify-content:center; }
.theme-toggle {
    background:var(--color-bg-alt);
    color:var(--color-text);
    border:1px solid var(--color-border);
    padding:.55rem .85rem;
    border-radius: var(--radius-md);
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center; /* Center text and emoji horizontally */
    gap:.5rem;
    font-size:.8rem;
    font-weight:500;
    position:relative;
    overflow:hidden;
    box-shadow: var(--shadow-sm);
    transition:var(--transition-base);
    text-align:center; /* Center text inside the button */
    min-width:44px;
    min-height:44px;
}
[data-theme="dark"] .theme-toggle { background: var(--color-surface-soft); }
.theme-toggle:hover { background:var(--color-bg); box-shadow: var(--shadow-md); }
.theme-toggle:focus-visible { outline:2px solid var(--color-brand); outline-offset:2px; }
.theme-toggle .toggle-icon { font-size:1rem; filter: drop-shadow(0 2px 2px rgba(0,0,0,0.15)); }
.theme-toggle[aria-pressed="true"] .toggle-icon { animation: rotateIcon .9s ease; }
@keyframes rotateIcon { 0%{ transform:rotate(0);} 50%{ transform:rotate(200deg) scale(.85);} 100%{ transform:rotate(360deg);} }

/* Left-extending ribbon */
.ribbon-left h2{
    background-color: #5a4b66; /* Ribbon color */
    color: #FFFFFF; /* Text color */
    padding: 0;
    display: inline-block;
    font-size: 1.8em;
    font-weight: bold;
    position: relative;
    text-align: center;
    letter-spacing: 1px;
}
/* Right-extending ribbon */
.ribbon-right {
    flex: 1;
    padding: 0.5em 1.5em;
    margin: 1.5em 0em;
    width:fit-content;
    z-index: 15;
    background-color: #5a4b66; /* Ribbon color */
    color: #FFFFFF;
    display: inline-block;
    font-size: 1.8em;
    font-weight: bold;
    position: relative;
    text-align: center;
    letter-spacing: 1px;
    box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    max-width: 100%;
}


/* Hero Section */
section.home {
    background: linear-gradient(to bottom, var(--color-bg) 0%, rgba(255,255,255,0) 25%);
    position: relative;
    color: #FFFFFF;
    text-align: center;
    padding: 8em 1.25em 5em;
    z-index: 10;
    min-height: 75vh;
    display:flex;
    align-items:center;
}

/* Fallback to JPG if neither AVIF nor WebP is supported */
section.home {
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 25%), 
                      url('images/beach.jpg');
}

/* Fallback to WebP if AVIF isn't supported */
@supports (background-image: url('images/beach.webp')) {
    section.home {
        background-image: linear-gradient(to bottom, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 25%), 
                          url('images/beach.webp');
    }
}

/* Use AVIF if supported */
@supports (background-image: url('images/beach.avif')) {
    section.home {
        background-image: linear-gradient(to bottom, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 25%), 
                          url('images/beach.avif');
    }
}


section.home h1 {
        text-shadow: 1px 2px 16px rgba(0, 0, 0, 0.45);
}

.hero-inner { max-width:1200px; margin:0 auto; text-align:left; position:relative; padding: 3rem; }
.hero-headline { font-size: var(--hero-font-min); line-height:1.05; font-weight:700; color: #f5f7fa; max-width:15ch; letter-spacing:.5px; margin-bottom: 0.7em; }
.accent-gradient {
    background: linear-gradient(90deg, #ffffff 10%, #F2AA4C 70%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow:
        0 6px 18px rgba(0,0,0,0.45),
        0 0px 1px rgba(255,255,255,0.15);
}
.hero-sub { margin-top: 0.5em; margin-bottom: 2em; font-size: var(--hero-sub-min); max-width:50ch; color: #c0c6cf; line-height:1.5; }
.hero-cta-group { display:flex; gap:1rem; margin-top:2.1rem; flex-wrap:wrap; }

/* Buttons */
.cta-button { font-weight:600; text-decoration:none; display:inline-flex; align-items:center; justify-content:center; gap:.5rem; padding:.85rem 1.35rem; border-radius: var(--radius-lg); font-size:.95rem; letter-spacing:.25px; position:relative; isolation:isolate; overflow:hidden; border:1px solid transparent; cursor:pointer; transition:var(--transition-base); min-width:44px; min-height:44px; }
.cta-button.primary {
    background: var(--gradient-accent);
    color: #fff;
    border: none;
    border-radius: 24px;
    padding: 0.75em 2em;
    font-weight: 600;
    box-shadow: var(--shadow-glow);
    cursor: pointer;
    transition: box-shadow 0.2s;
}
.cta-button.primary:hover { filter: brightness(1.05) saturate(1.15); box-shadow:0 6px 30px -5px rgba(11,61,145,0.55); transform: translateY(-2px); }
.cta-button.ghost { background:var(--color-bg-alt); color: var(--color-text); border-color: var(--color-border); }
.cta-button.ghost:hover { background: var(--color-bg); box-shadow: var(--shadow-md); }
.cta-button:focus-visible { outline:2px solid var(--color-brand); outline-offset:2px; }
[data-theme="dark"] .cta-button.ghost { background: var(--color-surface-soft); }
[data-theme="dark"] .cta-button.ghost:hover { background: var(--color-surface); }

/* Glass effect base */
.glass { background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04)); backdrop-filter: var(--backdrop-glass); -webkit-backdrop-filter: var(--backdrop-glass); border:1px solid rgba(255,255,255,0.22); box-shadow: var(--shadow-sm); }
[data-theme="dark"] .glass { background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03)); border-color: rgba(255,255,255,0.12); }

/* Scroll animation */
[data-animate] { opacity:0; transform: translateY(25px); transition: opacity .8s ease, transform .8s ease; }
[data-animate].in-view { opacity:1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
    [data-animate] { transition:none; transform:none; opacity:1; }
    .cta-button.primary:hover, .cta-button.ghost:hover { transform:none; }
}

/* Services Section */
section.services {
    background: var(--color-bg);
    margin-top: 0%;
    padding-top: 0%;
    margin-bottom: 5%;
    padding-bottom: 5%;
    position:relative;
}
section.services:before { content:""; position:absolute; inset:0; background: radial-gradient(circle at 20% 10%, rgba(11,61,145,0.08), transparent 60%), radial-gradient(circle at 80% 60%, rgba(242,170,76,0.10), transparent 70%); pointer-events:none; }

section.services .service-text {
    flex: 1;
    padding: 0.5em 1.5em;
    margin: 1.5em 0em;
    background-color: #0B3D91;
    width:fit-content;
    color: #FFFFFF;
    z-index: 15;
    display: inline-block;
    font-size: 1.8em;
    font-weight: bold;
    position: relative;
    text-align: center;
    letter-spacing: 1px;
    box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.3); /* Subtle shadow beneath the ribbon */
    overflow: hidden;
    max-width: 100%;
}

section.services .container {
    margin: 0 auto;
    justify-content: center;
    align-items: center;
}

section.services .services-grid {
    max-width: 100%;
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25%, 1fr));
    gap: 2em;
    margin: 1em 2em;
    min-height: 10em;
    align-items: center;
    justify-items: center;
    box-sizing: border-box;
}

section.services .services-grid .service {
    background: var(--color-surface);
    padding: 1.25em 1.15em 1.15em;
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
    z-index: 9;
    min-height: 15em;
    max-height: 15em;
    max-width: 30vw;
    display:flex; flex-direction:column; justify-content:flex-end;
    transition: var(--transition-base);
}
section.services .services-grid .service:before { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(0,0,0,0) 25%, rgba(0,0,0,0.55) 90%); opacity:.85; z-index:1; }
section.services .services-grid .service h3, section.services .services-grid .service p { position:relative; z-index:2; }
section.services .services-grid .service:hover { transform: translateY(-6px) scale(1.015); box-shadow:0 14px 40px -10px rgba(0,0,0,0.35); }

section.services .services-grid .service .image-layer {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-size: cover;
    border-radius: 5px;
    opacity: 0.3;
    z-index: -1;
    min-height: 10em;
}

/* Default to JPG - AI Integration */
.service-ai .image-layer {
    background-image: url('images/ai-image.jpg');
    background-size: cover;
    background-position: center;
}

/* Default to JPG - Business Process Automation */
.service-business .image-layer {
    background-image: url('images/business-image.jpg');
    background-size: cover;
    background-position: center;
}

/* Default to JPG - Cloud Solutions */
.service-cloud .image-layer {
    background-image: url('images/cloud-image.jpg');
    background-size: cover;
    background-position: center;
}

/* WebP support - AI Integration */
@supports (background-image: url('images/ai-image.webp')) {
    .service-ai .image-layer {
        background-image: url('images/ai-image.webp');
    }
}

/* WebP support - Business Process Automation */
@supports (background-image: url('images/business-image.webp')) {
    .service-business .image-layer {
        background-image: url('images/business-image.webp');
    }
}

/* WebP support - Cloud Solutions */
@supports (background-image: url('images/cloud-image.webp')) {
    .service-cloud .image-layer {
        background-image: url('images/cloud-image.webp');
    }
}

/* AVIF support - AI Integration */
@supports (background-image: url('images/ai-image.avif')) {
    .service-ai .image-layer {
        background-image: url('images/ai-image.avif');
    }
}

/* AVIF support - Business Process Automation */
@supports (background-image: url('images/business-image.avif')) {
    .service-business .image-layer {
        background-image: url('images/business-image.avif');
    }
}

/* AVIF support - Cloud Solutions */
@supports (background-image: url('images/cloud-image.avif')) {
    .service-cloud .image-layer {
        background-image: url('images/cloud-image.avif');
    }
}


section.services .services-grid .service h3 { color:#fff; font-weight:600; letter-spacing:.5px; margin:.25rem 0 .35rem; }
section.services .services-grid .service p { color: #cdd2d9; font-size:.85rem; line-height:1.5; }

/* About Us Section */
section.about { background: var(--color-bg); position:relative; }
section.about:before { content:""; position:absolute; inset:0; background: linear-gradient(120deg, rgba(11,61,145,0.06), transparent 70%); pointer-events:none; }

section.about .badges-about-wrapper {
    display: flex;
    justify-content: space-around; /* Use space-around to distribute space evenly */
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 0; /* Add padding to the wrapper for more breathing space */
    margin: 2em 0em;
}

section.about .badges {
    flex: 1;
    padding: 0;
    margin: 1em;
    color: #FFFFFF;
    border-radius: 5px;
    text-align: center;
    position: inherit;
    align-items: center;
}


section.about .about-text {
    flex: 1;
    padding: 0;
    background-color: #FFFFFF;
    color: #0B3D91; /* Darker color for text */
}

section.about .badges img {
    width: 100%;
    height: auto;
    border-radius: 0.5em;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin: 1em 0em;
}

section.about .about-text p {
    padding: 1em;
}

section.about .ribbon-left {
    flex: 1;
    padding: 0.5em 1.5em;
    margin: 1.5em 0em;
    background-color: #0B3D91;
    width:fit-content;
    color: #FFFFFF;
    z-index: 15;
    display: inline-block;
    font-size: 1.8em;
    font-weight: bold;
    position: relative;
    text-align: center;
    letter-spacing: 1px;
    box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.3); /* Subtle shadow beneath the ribbon */
    overflow: hidden;
    max-width: 100%;
}

section.about .badges {
    display: flex;
    flex-direction: column;
    align-items: center;
}

section.about .badges img {
    width: 75%;
}

/* Contact Section */
section.contact { background: #0B3D91; padding: 2em 0em; position:relative; }
section.contact:before { content:""; position:absolute; inset:0; background: linear-gradient(160deg, rgba(255,255,255,0.15), rgba(255,255,255,0) 70%); pointer-events:none; }
section.contact .container { max-width: 1200px; margin: 0 auto; padding: 0 1.25em; }

section.contact .ribbon-left {
    flex: 1;
    padding: 0.5em 1.5em;
    margin: 1.5em 0em;
    width:fit-content;
    z-index: 15;
    background-color: #5a4b66; /* Ribbon color */
    color: #FFFFFF; /* Text color */
    display: inline-block;
    font-size: 1.8em;
    font-weight: bold;
    position: relative;
    text-align: center;
    letter-spacing: 1px;
    box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.3); /* Subtle shadow beneath the ribbon */
    overflow: hidden;
    max-width: 100%;
}
/* Make the Contact Us ribbon flush left while keeping container padding for other content */
section.contact .contact-form .ribbon-left { margin-left: -1.25em; }

section.contact .contact-partners-wrapper {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: flex-start;
}

section.contact .contact-form,
section.contact .partners {
    flex: 1;
    min-width: 300px;
    padding: 0em;
}

section.contact .contact-form {
    display: flex;
    flex-direction: column;
}
section.contact .contact-form > p { margin: .25em 0 1em 0; padding-left: .25em; color: rgba(255,255,255,0.85); }

section.contact .partners {
    display: flex;
    flex-direction: column;
    align-items: left;
    justify-content: center;
    padding-left: 1.5em;
}

section.contact .partners .partner-logos {
    display: flex;
    justify-content: center; /* Center logos horizontally */
    align-items: center; /* Center logos vertically */
    gap: 5em;
    padding: 1em;
}

section.contact .partners .partner-logos img {
    max-width: 25vw; /* Control max size */
    height: auto; /* Maintain aspect ratio */
    object-fit: contain; /* Ensures the entire logo fits while maintaining aspect ratio */
    filter: invert(100%); /* Invert the colors of the logos */
}

section.contact .hubspot-form-container { background: var(--color-bg); color: var(--color-text); padding: 1.25em 1.25em .5em; margin:1em; border-radius: var(--radius-md); box-shadow: var(--shadow-md); border:1px solid var(--color-border); }
[data-theme="dark"] section.contact .hubspot-form-container { background: var(--color-surface); }

/* Contact form 2025 styles */
section.contact form {
    background: var(--color-bg);
    color: var(--color-text);
    padding: 1.25em 1.25em 1.35em;
    margin: 1em;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    overflow: hidden;
}
[data-theme="dark"] section.contact form { background: var(--color-surface); }

section.contact form .form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.1em 1.1em;
}
@media (min-width: 680px) {
    section.contact form .form-grid {
        grid-template-columns: 1fr 1fr;
    }
}
section.contact form .span-2 { grid-column: 1 / -1; }

section.contact form .form-row { display:flex; flex-direction:column; gap:.45em; }
section.contact form .form-row { min-width: 0; }
section.contact form label { font-weight:600; font-size:.9rem; color: var(--color-text); }
section.contact form input[type="text"],
section.contact form input[type="email"],
section.contact form textarea {
    width: 100%;
    box-sizing: border-box;
    background: var(--color-bg-alt);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: .75em .9em;
    font-size: 1rem;
    transition: border-color var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
}
[data-theme="dark"] section.contact form input[type="text"],
[data-theme="dark"] section.contact form input[type="email"],
[data-theme="dark"] section.contact form textarea { background: var(--color-surface-soft); }
section.contact form input::placeholder, section.contact form textarea::placeholder { color: rgba(99,109,126,.8); }
section.contact form textarea { resize: vertical; min-height: 8rem; }
section.contact form input:focus, section.contact form textarea:focus { outline:none; border-color: var(--color-brand); box-shadow: 0 0 0 3px rgba(11,61,145,0.15); background: var(--color-bg); }

section.contact form .checkbox { display:flex; align-items:center; gap:.6em; font-size:.9rem; color: var(--color-text-secondary); }
section.contact form input[type="checkbox"] { width:1.1rem; height:1.1rem; }

section.contact form .form-actions { display:flex; align-items:center; gap:.75em; margin-top:.5em; flex-wrap:wrap; }
section.contact form .status-text { color:#e9edf6; font-size:.9rem; }
[data-theme="dark"] section.contact form .status-text { color:#c0c6cf; }

.visually-hidden { position:absolute !important; height:1px; width:1px; overflow:hidden; clip:rect(1px, 1px, 1px, 1px); white-space:nowrap; }

/* Footer */
footer { background-color: var(--color-bg); color: var(--color-text); text-align:center; padding: 2.5em 0 2em; border-top:1px solid var(--color-border); font-size:.8rem; }
[data-theme="dark"] footer { background: #0b121c; }

footer .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* CTA Button (for potential Call to Action) */
/* Legacy CTA styles removed (now integrated above) */

/* Focus styles fallback */
:focus-visible { outline:2px solid var(--color-accent); outline-offset:2px; }

/* Media Queries for Mobile Responsiveness */

@media (min-width: 764px) and (max-width: 950px) {
    section.services .services-grid {
        min-height: 20em;
        grid-template-columns: repeat(2, 1fr);
        align-items: center;
        justify-items: center;
        justify-content: center;
    }

    section.services .services-grid > div:nth-child(3) {
        grid-column: 1 / 3; /* Makes the third box span between the first and second columns */
        justify-self: center; /* Centers the box within that space */
        width: 50%; /* Adjust the width of the box */
        margin-top: 5em;
    }
}

@media (max-width: 764px) {
    /* Show hamburger menu on mobile */
    .menu-button-container {
        display: flex;
    }
    
    /* Hide navigation links on mobile by default */
    header nav ul.nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--color-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 999;
        gap: 2em;
        margin: 0;
        padding: 0;
        backdrop-filter: blur(14px) saturate(160%);
        -webkit-backdrop-filter: blur(14px) saturate(160%);
    }
    
    [data-theme="dark"] header nav ul.nav-links {
        background: var(--color-bg);
    }
    
    /* Show navigation when menu toggle is checked */
    #menu-toggle:checked ~ ul.nav-links {
        display: flex;
    }
    
    /* Make navigation links larger on mobile */
    header nav ul li a {
        font-size: 1.2rem;
        padding: 1rem 2rem;
    }

    section.services .services-grid {
        min-height: 10em;
        grid-template-columns: 1fr;
        align-items: center;
        justify-items: center;
        width: 100%; /* Set to 100% to avoid shifting */
        margin: auto;
    }

    section.services .services-grid .service {
        max-width: 90vw; /* Adjust to match mobile width */
        width: 100%; /* Ensures the boxes don't stretch wider than their max-width */
        margin-bottom: 2em; /* Add space between service cards */
    }

    .hero-headline { font-size: clamp(2.1rem, 8vw, 3.2rem); }
    .hero-sub { font-size: clamp(1rem, 3.5vw, 1.1rem); }

    .badges-about-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .contact-form, .partners {
        flex: 1;
    }
}

/* Regular */
@font-face {
  font-family: 'Coolvetica';
  src: url('fonts/coolvetica_rg-webfont.woff2') format('woff2'),
       url('fonts/coolvetica_rg-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
  
  /* Italic */
@font-face {
  font-family: 'Coolvetica';
  src: url('fonts/coolvetica_rg_it-webfont.woff2') format('woff2'),
       url('fonts/coolvetica_rg_it-webfont.woff') format('woff');
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}
  
  /* Compressed */
@font-face {
  font-family: 'Coolvetica';
  src: url('fonts/coolvetica_compressed_hv-webfont.woff2') format('woff2'),
       url('fonts/coolvetica_compressed_hv-webfont.woff') format('woff');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}
  
  /* Condensed */
@font-face {
  font-family: 'Coolvetica';
  src: url('fonts/coolvetica_condensed_rg-webfont.woff2') format('woff2'),
       url('fonts/coolvetica_condensed_rg-webfont.woff') format('woff');
  font-weight: normal;
  font-style: condensed;
  font-display: swap;
}
  
  /* Crammed */
@font-face {
  font-family: 'Coolvetica';
  src: url('fonts/coolvetica_crammed_rg-webfont.woff2') format('woff2'),
       url('fonts/coolvetica_crammed_rg-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
