*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    overflow-x: hidden;
    position: relative;
}

:root {
    /* Dark theme colors */
    --var-blue-dark-tech: #182f52;
    --var-blue-lighter-dark-tech: #243E66;
    --var-blue-primary: #1F4B99;
    --var-blue-secondary: #3B7CCB;
    --var-blue-box: rgba(74, 144, 226, 0.08);
    --var-black-bg: #0B1220;
    --var-white-cr: #eef6ff;
    --var-text-white: #F2F6FF;
    --var-text-headers: #F2F6FF;
    --var-card-headers: #F2F6FF;
    --var-text-soft: #D6E2F5;
    --var-muted: #96A8C8;
    --var-chip-bg: rgba(74, 144, 226, 0.06);

    /* Additional theme variables */
    --var-border-color: rgba(74, 144, 226, 0.2);
    --var-hover-bg: rgba(74, 144, 226, 0.1);
    --var-card-separator: rgba(0, 0, 0, 0.15);
    --var-shadow: rgba(0, 0, 0, 0.1);
    --logo-filter: brightness(0) invert(1);
}

/* Light theme colors */
html[data-theme="light"] {
    --var-blue-dark-tech: #e8f1ff;
    --var-blue-lighter-dark-tech: #eff3fa;
    --var-blue-primary: #1F4B99;
    --var-blue-secondary: #3B7CCB;
    --var-blue-box: rgba(74, 144, 226, 0.08);
    --var-black-bg: #ffffff;
    --var-white-cr: #182f52;
    --var-text-white: #F2F6FF;
    --var-text-headers: #0B1220;
    --var-card-headers: #F2F6FF;
    --var-text-soft: #3d3d5c;
    --var-muted: #6b7389;
    --var-chip-bg: rgba(74, 144, 226, 0.12);

    /* Light theme additional variables */
    --var-border-color: rgba(74, 144, 226, 0.3);
    --var-hover-bg: rgba(74, 144, 226, 0.05);
    --var-card-separator: rgba(0, 0, 0, 0.08);
    --var-shadow: rgba(0, 0, 0, 0.05);

    --logo-filter: brightness(0);
}

html {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Applied for ~350ms when switching theme — gives every element a smooth colour sweep */
html.theme-transitioning,
html.theme-transitioning *,
html.theme-transitioning *::before,
html.theme-transitioning *::after {
    transition: background-color 0.3s ease, color 0.3s ease,
                border-color 0.3s ease, box-shadow 0.3s ease !important;
}

body {
    background-color: var(--var-blue-dark-tech);
    color: var(--var-text-white);
    font-family: 'Lato', Arial, sans-serif;
    font-size: 16px;
    min-height: min(100vh, -webkit-fill-available);
    width: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1,
h2,
h4 {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 500;
    color: var(--var-text-headers);
    line-height: 1.05;
}

h3 {
    color: var(--var-card-headers);
}

p {
    color: var(--var-text-soft);
    font-size: 16px;
    line-height: 1.5;
}

h1 {
    font-size: 54px;
}

h2 {
    font-size: 42px;
}

h3 {
    font-size: 32px;
}

.container {
    max-width: 1220px;
    padding: 0 10px;
    width: 100%;
}

.row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.col-50 {
    gap: 20px;
    flex: 1 1 400px;
    max-width: 50%;
    padding: 0px 32px 0px 32px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.col-50 .centerized {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.col-50-contact {
    gap: 20px;
    flex: 1 1 400px;
    max-width: 50%;
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.col-50-hero {
    gap: 20px;
    flex: 1 1 400px;
    max-width: 50%;
    padding: 0px 32px 0px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.col-50-hero-text {
    gap: 20px;
    flex: 1 1 400px;
    max-width: 50%;
    padding: 0px 16px 0px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.col-lg-3 {
    flex: 0 0 32.5%;
    max-width: 32.5%;
}

.col-lg-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.col-lg-benefits {
    flex: 0 0 32.4%;
    max-width: 32.4%;
}

.row.benefits-first {
    padding-top: 40px;
    padding-bottom: 10px;
}

.row-benefits {
    padding: 0px 30px 0px 30px;
    display: flex;
    width: 100%;
    gap: 15px;
}

section {
    position: relative;
}

/* =======================
   COOKIE BANNER
======================= */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    background: var(--var-blue-lighter-dark-tech);
    border-top: 1px solid var(--var-border-color);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.18);
    padding: 16px 20px;
    display: none;
    transform: translateY(100%);
    transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-banner-inner {
    max-width: 1220px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cookie-banner-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--var-text-headers);
}

.cookie-banner-desc {
    font-size: 13px;
    color: var(--var-text-soft);
    line-height: 1.5;
    margin: 0;
}

.cookie-banner-desc a {
    color: var(--var-blue-secondary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-banner-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    border: 1.5px solid transparent;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
    font-family: inherit;
}

.cookie-btn-accept {
    background: var(--var-blue-primary);
    border-color: var(--var-blue-primary);
    color: #fff;
}

.cookie-btn-accept:hover {
    background: #193e80;
    border-color: #193e80;
}

.cookie-btn-necessary {
    background: transparent;
    border-color: var(--var-blue-secondary);
    color: var(--var-blue-secondary);
}

.cookie-btn-necessary:hover {
    background: var(--var-blue-secondary);
    color: #fff;
}

.cookie-btn-deny {
    background: transparent;
    border-color: var(--var-border-color);
    color: var(--var-muted);
}

.cookie-btn-deny:hover {
    border-color: var(--var-muted);
    color: var(--var-text-soft);
}

@media (max-width: 600px) {
    .cookie-banner-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .cookie-banner-actions {
        width: 100%;
        flex-direction: column-reverse;
    }

    .cookie-btn {
        width: 100%;
        padding: 12px 16px;
        text-align: center;
        font-size: 14px;
    }
}

/* ── Light-mode contrast fixes ── */
html[data-theme="light"] .special-box {
    color: var(--var-blue-primary);
}

html[data-theme="light"] .cookie-btn-necessary {
    color: var(--var-blue-primary);
    border-color: var(--var-blue-primary);
}

html[data-theme="light"] .cookie-btn-deny {
    color: #4a5270;
    border-color: rgba(74, 144, 226, 0.45);
}

html[data-theme="light"] .cookie-banner-desc a {
    color: var(--var-blue-primary);
}

/* =======================
   RESPONSIVE
======================= */

@media only screen and (max-width: 1250px) {

    .col-50,
    .col-lg-6,
    .col-50-contact,
    .col-50-hero,
    .col-50-hero-text {
        flex: 1 1 100%;
        max-width: 100%;
        padding: 12px;
    }

    .contact-form {
        width: 100%;
        min-width: 90% !important;
        max-width: 100% !important;
    }

    .col-lg-benefits {
        flex: 1 1 100%;
        max-width: 100%;
        padding: 0px 12px 0px 12px;
    }

    .row-benefits {
        padding: 0;
        flex: 1 1 100%;
        min-width: 100%;
        flex-wrap: wrap;
    }

    section.contact,
    section.benefits,
    section.why-stellar,
    section.showcase-website,
    section.showcase-website-diff,
    section.what-is-seo {
        padding: 28px 0 !important;
        min-height: auto;
    }

    section.main-hero {
        min-height: auto;
    }

    section.how-we-can-help {
        min-height: 500px;
        padding-top: 100px;
    }

    img {
        max-width: 100%;
        overflow-x: hidden;
    }

    nav .links ul {
        gap: 10px;
    }

    nav .links ul li a {
        font-size: 16px;
        padding: 8px 10px;
    }

    .col-50 .centerized {
        text-align: left;
        justify-content: left;
    }
}

@media only screen and (max-width: 868px) {

    .special-box {
        font-size: 16px !important;
        padding: 6px 14px;
    }

    .col-50,
    .col-lg-6,
    .col-50-contact,
    .col-50-hero,
    .col-50-hero-text {
        padding: 8px 10px;
    }

    .col-lg-benefits {
        padding: 0 10px;
    }

    .section-text {
        font-size: 18px !important;
    }

    .btn {
        font-size: 15px !important;
    }

    .form-row {
        flex-direction: column;
        gap: 12px;
    }

    .form-row input {
        width: 100%;
    }

    .btn.primary-btn:hover,
    .btn.secondary-btn:hover {
        box-shadow: none;
        transform: none;
    }

    .contact .col-50-contact:first-child {
        order: 2;
    }

    .contact .col-50-contact:last-child {
        order: 1;
    }

    .contact--info-first .col-50-contact:first-child {
        order: 1;
    }

    .contact--info-first .col-50-contact:last-child {
        order: 2;
    }

    .card-33-w {
        min-width: 100% !important;
        height: auto;
        min-height: 500px;
    }

    .col-lg-3 {
        min-width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
        text-align: left;
    }

    .card-wrapper {
        flex-wrap: wrap;
        padding: 10px;
    }

    .card-pricing {
        font-size: 20px;
    }

    body {
        padding-top: 72px !important;
    }

    .theme-toggle {
        width: 44px;
        height: 24px;
        border-radius: 12px;
        padding: 2px;
    }

    .toggle-slider {
        width: 18px;
        height: 18px;
        top: 1px;
        left: 2px;
    }

    .theme-toggle.dark-mode .toggle-slider {
        left: 22px;
    }

    .theme-icon {
        font-size: 10px;
    }

    h1 {
        font-size: 32px !important;
    }

    h2 {
        font-size: 26px !important;
    }

    h3 {
        font-size: 22px !important;
    }

    .showcase-website-diff .col-50:first-child {
        order: 2;
    }

    .showcase-website-diff .col-50:last-child {
        order: 1;
    }

    section.main-hero {
        padding: 48px 0 36px !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
}

/* =======================
   ANIMATIONS / KEYFRAMES
======================= */

@keyframes float-subtle {
    0% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(0, -10px, 0);
    }

    100% {
        transform: translate3d(0, 0, 0);
    }
}

@keyframes starsFloat {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-6px);
    }
}

@keyframes glowTwinkle {
    0% {
        opacity: 0.45;
        transform: scale(1);
        filter: blur(0.6px);
    }

    50% {
        opacity: 0.9;
        transform: scale(1.12);
        filter: blur(1.2px);
    }

    100% {
        opacity: 0.6;
        transform: scale(1);
        filter: blur(0.8px);
    }
}

@keyframes sparklePulse {
    0% {
        opacity: 0.6;
        transform: scale(1);
    }

    100% {
        opacity: 1;
        transform: scale(1.35);
        filter: blur(0.6px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: .8
    }

    50% {
        transform: scale(1.06);
        opacity: .6
    }

    100% {
        transform: scale(1);
        opacity: .8
    }
}

@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
