html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}
html {
  position: relative;
  min-height: 100%;
}
body {
  margin-bottom: 60px;
}
.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}
.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Theme variables + brand colors */
:root {
    --searche-blue: #04ade1;
    --searche-midnight-blue: #101728;
    --searche-green: #90be6d;
    --white: #ffffff;
    --black: #0f1819;

    /* Dark mode defaults */
    --bg-primary: var(--searche-midnight-blue);
    --bg-secondary: #0f1522;
    --text-primary: var(--white);
    --text-secondary: #d0d0d0;
    --border-color: rgba(4, 173, 225, 0.15);
    --card-bg: rgba(4, 173, 225, 0.06);
    --navbar-bg: var(--searche-midnight-blue);
}

/* Light theme overrides */
html[data-theme="light"] {
    --bg-primary: #f6f8fb;
    --bg-secondary: #ffffff;
    --text-primary: #252525;
    --text-secondary: #6c757d;
    --border-color: rgba(4, 173, 225, 0.08);
    --card-bg: rgba(4, 173, 225, 0.03);
    --navbar-bg: #ffffff;
}

h1, .h1 {font-size: 2.5rem;}
h2, .h2 {font-size: 2.25rem;}
h3, .h3 {font-size: 1.75rem;}
h1, h2, h3 {font-weight: bold; margin-bottom: 1em;}
h2, h3 {color: var(--searche-blue);}

p { line-height: 1.75; }
a { color: var(--searche-blue); }
.fs-xxl {
    font-size: 3em;
}
.fs-small {
    font-size: .75em;
}

.searche-blue { color: var(--searche-blue); }
.searche-midnight-blue { color: var(--text-primary); }
.searche-green { color: var(--searche-green); }
.white { color: var(--white); }
.black { color: var(--black); }

.bold {font-weight: bold;}

.btn-searche-primary {
    background: linear-gradient(to right, var(--searche-blue), var(--searche-green));
    border: none;
    font-weight: 700;
    color: var(--black);
    font-size: .9em;
    padding: .75em 1.25em;
    border-radius: 1em;
    text-shadow: 1px 1px 8px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: background 0.3s ease, color 0.15s ease;
}
.btn-searche-primary::before {
    content: "";
    position: absolute;
    top: var(--y);
    left: var(--x);
    width: 0;
    height: 0;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 255, 225, .30), transparent 60%);
    border-radius: 50%;
    transition: width 0.2s ease, height 0.2s ease;
    pointer-events: none;
}
.btn-searche-primary:hover::before {
    width: 100px;
    height: 100px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.25s ease, color 0.25s ease;
}
header {
    display: block;
    min-height: 85px;
}
#main-menu-block {
    transition: all 0.25s ease;
    background-color: var(--navbar-bg);
    border-bottom: 1px solid var(--border-color);
}
.navbar {
    z-index: 999;
}
html[data-theme="dark"] .navbar-toggler-icon {
    --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.main-menu {
    font-family: 'Poppins', sans-serif;
}

.main-menu a {
    color: var(--text-primary);
    transition: color 0.2s ease;
}
.main-menu a:hover {
    color: var(--searche-blue);
}

.fixed-header {
    position: fixed;
    background-color: var(--navbar-bg);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 10px rgba(38, 14, 105, 0.12);
    animation: smoothScroll 1s forwards;
}

.fullwidth { width: 100%; }
.fullheight { height: 100vh; display: flex; align-items: center; }

.screen-height-block-cover-screen {
    min-height: calc(100vh - 80px);
    height: auto;
}
.screen-height-block {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
}
.screen-height-block:not(.screen-height-block-cover-screen) {
    margin: 10em 0;
}

.screen-height-block .row {
    width: 100%;
    max-width: 1200px;
    padding: 0 15px;
    margin: 0;
}

.screen-height-block .col-4,
.screen-height-block .col-6,
.screen-height-block .col-8,
.screen-height-block .col-12-sm {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.img-block-rounded {
    width: 425px;
    height: 425px;
    max-width: 100%;
    position: relative;
    border-radius: 1em;
}

.img-block-rounded img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 1em;
}

.glow-bg-rounded::before {
    content: "";
    position: absolute;
    border-radius: 50%;
    z-index: -1;
    background: radial-gradient(circle, #1f41bb, #260e69 100%);
    filter: blur(35px);
}
html[data-theme="light"] .glow-bg-rounded::before {
    background: radial-gradient(circle, var(--searche-blue) 100%);
}

.glow-bg-rounded-left::before {
    top: -30px;
    left: -50px;
    right: -30px;
    bottom: -50px;
}

.glow-bg-rounded-right::before {
    top: -30px;
    left: -30px;
    right: -50px;
    bottom: -50px;
}


.list-none, .footer-menu { padding: 0; list-style: none; }

.review-card {
    background: var(--card-bg);
    border: 2px solid transparent;
    background-clip: padding-box;
    border-radius: 1.5em;
    padding: 2em;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.25s;
    position: relative;
    overflow: hidden;
}
.review-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 1.5em;
    padding: 2px;
    background: linear-gradient(135deg, var(--searche-blue), var(--searche-green));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.review-card::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--searche-blue), transparent 70%);
    opacity: 0.08;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}
.review-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(4, 173, 225, 0.12);
}
.review-card-header {
    display: flex;
    align-items: center;
    gap: 1em;
    margin-bottom: 1.5em;
}
.review-card-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--searche-blue), var(--searche-green));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: bold;
    font-size: 1.25rem;
    color: var(--black);
}
.review-card-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}
.review-card-info h3,
.review-card-info h5 {
    margin: 0;
    color: var(--text-primary);
    font-weight: bold;
    font-size: 1.1rem;
}

.review-card-info .review-card-company {
    color: var(--searche-green);
    font-size: 0.9rem;
    margin: 0.25em 0 0 0;
}

.review-card-stars {
    display: flex;
    gap: 0.25em;
    margin-bottom: 1em;
    font-size: 1.2rem;
}

.review-card-stars .star {
    color: var(--searche-green);
}

    .review-card-content {
        flex-grow: 1;
        margin-bottom: 1em;
        color: var(--text-secondary);
        line-height: 1.6;
        font-size: 0.95rem;
    }

    .review-carousel {
        padding: 2em 0;
    }

        .review-carousel .carousel-inner {
            border-radius: 1.5em;
        }

        .review-carousel .carousel-control-prev,
        .review-carousel .carousel-control-next {
            width: auto;
            background: none;
            border: none;
            top: 50%;
            transform: translateY(-50%);
        }

        .review-carousel .carousel-control-prev {
            left: -60px;
        }

        .review-carousel .carousel-control-next {
            right: -60px;
        }

    .carousel-indicators {
        bottom: -3em;
    }

    .review-carousel .carousel-indicators button {
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.3);
        border: none;
        transition: background-color 0.3s ease;
        margin: 0 .5em;
    }

    html[data-theme="light"] .review-carousel .carousel-indicators button {
        background-color: rgba(0, 0, 0, 0.16);
    }

    .review-carousel .carousel-indicators button.active {
        background-color: var(--searche-blue);
    }

    .review-carousel .carousel-item {
        padding: 1em;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: .75em;
        background-color: var(--bg-secondary);
        color: var(--text-primary);
        border-color: var(--border-color);
    }

        .contact-form input:focus,
        .contact-form textarea:focus {
            background-color: var(--bg-secondary);
            color: var(--text-primary);
            border-color: var(--searche-blue);
        }

    html[data-theme="dark"] .contact-form input::placeholder,
    html[data-theme="dark"] .contact-form textarea::placeholder {
        color: var(--white);
    }

    .contact-form .row {
        padding: 0;
    }

    .contact-form .g-recaptcha {
        transform: scale(0.75);
        transform-origin: 0 0;
    }

    .theme-toggle {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-left: 1rem;
    }

    .theme-toggle-icon {
        font-size: 1.05rem;
        color: var(--text-secondary);
        transition: opacity .35s ease, transform .35s ease;
    }

    html[data-theme="dark"] .theme-toggle-icon:first-of-type {
        opacity: 0.3;
        transform: scale(0.8);
    }

    html[data-theme="light"] .theme-toggle-icon:last-of-type {
        opacity: 0.3;
        transform: scale(0.8);
    }

    .theme-toggle-switch {
        position: relative;
        display: inline-block;
        width: 60px;
        height: 32px;
    }

        .theme-toggle-switch input {
            display: none;
        }

    .theme-toggle-slider {
        position: absolute;
        cursor: pointer;
        inset: 0;
        border-radius: 50px;
        transition: 0.35s ease;
        background: linear-gradient(145deg, #dcdcdc, #f6f6f6);
        box-shadow: inset 3px 3px 6px #bcbcbc, inset -3px -3px 6px #ffffff;
    }

    html[data-theme="dark"] .theme-toggle-slider {
        background: linear-gradient(145deg, #292d52, #3a3f6d);
        box-shadow: inset 3px 3px 6px #1e223d, inset -3px -3px 6px #4c528d;
    }

    .theme-toggle-slider:before {
        content: "";
        position: absolute;
        height: 26px;
        width: 26px;
        top: 3px;
        left: 3px;
        border-radius: 50%;
        transition: 0.35s ease;
        background: #ffffff;
        box-shadow: 2px 2px 4px rgba(0,0,0,0.2), -2px -2px 4px rgba(255,255,255,0.8);
    }

    html[data-theme="dark"] .theme-toggle-slider:before {
        background: #dde3ff;
        box-shadow: 2px 2px 4px rgba(0,0,0,0.4), -2px -2px 4px rgba(255,255,255,0.2);
    }

    .theme-toggle-switch input:checked + .theme-toggle-slider:before {
        transform: translateX(28px);
    }

    .theme-toggle-slider .toggle-icon {
        position: absolute;
        width: 18px;
        height: 18px;
        top: 50%;
        transform: translateY(-50%);
        color: #ffcc33;
        transition: opacity 0.35s ease, transform 0.35s ease;
        pointer-events: none;
    }

    .theme-toggle-slider .sun {
        left: 8px;
        opacity: 1;
    }

    .theme-toggle-slider .moon {
        right: 8px;
        opacity: 0;
        color: #d0d8ff;
    }

    html[data-theme="dark"] .theme-toggle-slider .sun {
        opacity: 0;
        transform: translateY(-50%) scale(0.5);
    }

    html[data-theme="dark"] .theme-toggle-slider .moon {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }

    .theme-toggle-slider:before {
        z-index: 2;
    }

    html[data-theme="dark"] .theme-toggle-slider:before {
        background: #e7ebff;
    }

    .navbar-collapse .theme-toggle {
        margin-left: auto;
    }
    /* Responsive */
    @media screen and (max-width: 768px) {
        .screen-height-block-cover-screen,
        .screen-height-block:not(.screen-height-block-cover-screen) {
            height: auto;
            min-height: auto;
            margin-bottom: 2em;
            margin: 6em 0;
        }

        .navbar-toggler {
            color: var(--text-primary) !important;
        }

        .fs-xxl {
            font-size: 2.6em;
        }

        .img-block-rounded {
            width: 100%;
            height: auto;
        }

        .review-carousel .carousel-control-prev {
            left: -30px;
        }

        .review-carousel .carousel-control-next {
            right: -30px;
        }

        .navbar-collapse .theme-toggle {
            margin-left: 0;
            width: 100%;
            display: flex;
            justify-content: flex-end;
            padding-right: 0.5rem;
            box-sizing: border-box;
        }

        .navbar-collapse .nav-item {
            width: 100%;
        }

        .navbar-collapse .theme-toggle .theme-toggle-switch {
            margin-left: 0.5rem;
        }
    }