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;
}











/* ===============================
   ROOT / COLORS
=================================*/
:root {
    --bg: #0a0a0a;
    --bg-soft: #111;
    --card: rgba(255,255,255,0.03);
    --border: rgba(255,255,255,0.06);
    --text: #ffffff;
    --text-muted: #aaa;
    --primary: #ff3c00;
    --primary2: #ff7a00;
    --radius: 16px;
    --radius-lg: 24px;
    --transition: 0.3s;
}

/* ===============================
   BASE
=================================*/
body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
}

.container {
    max-width: 1200px;
}

/* ===============================
   TYPOGRAPHY
=================================*/
h1 {
    font-size: 48px;
    font-weight: 800;
}

h2 {
    font-size: 32px;
    font-weight: 700;
}

h3 {
    font-size: 24px;
}

p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===============================
   SECTIONS
=================================*/
.section {
    padding: 80px 20px;
}

/* ===============================
   BUTTONS
=================================*/
.btn-main {
    background: linear-gradient(135deg, var(--primary), var(--primary2));
    border: none;
    color: #fff;
    border-radius: 50px;
    padding: 10px 20px;
    transition: var(--transition);
}

    .btn-main:hover {
        transform: translateY(-2px);
        opacity: 0.9;
    }

.btn-outline-light {
    border-radius: 50px;
}

/* ===============================
   CARDS
=================================*/
.card-dark {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

    .card-dark:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    }

/* ===============================
   GRADIENT TEXT
=================================*/
.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--primary2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===============================
   HERO
=================================*/
.hero {
    padding: 120px 20px;
    text-align: center;
    background: radial-gradient(circle at top);
}

/* ===============================
   FORM
=================================*/
.form-control {
    background: rgba(255,255,255,0.05);
    border: none;
    color: #fff;
    border-radius: 12px;
}

    .form-control::placeholder {
        color: #888;
    }

/* ===============================
   BADGE
=================================*/
.badge-soft {
    background: rgba(255,255,255,0.08);
    color: #ccc;
    padding: 5px 10px;
    border-radius: 20px;
}

/* ===============================
   FOOTER
=================================*/
.footer-dark {
    background: var(--bg);
    border-top: 1px solid var(--border);
    text-align: center;
    padding: 30px 0;
}

.footer-link {
    color: var(--text-muted);
    transition: var(--transition);
}

    .footer-link:hover {
        color: var(--primary);
    }

/* ===============================
   FLEX HELPERS
=================================*/
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===============================
   GRID FIX
=================================*/
.row > div {
    display: flex;
}

/* ===============================
   CONTACT CARD
=================================*/
.contact-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 25px;
}

/* ===============================
   IMAGE
=================================*/
.img-cover {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--radius);
}

html, body {
    overflow-x: hidden;
}


.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

    .footer-links a {
        background: linear-gradient(135deg, #ff3c00, #ff7a00);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        transition: 0.3s;
        white-space: nowrap;
    }

        .footer-links a:hover {
            color: #ff7a00;
        }





/* BASE */
.logo-brand {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #fff;
    display: inline-block;
    transform: skewX(-6deg); /* subtle */
}

    .logo-brand span {
        background: linear-gradient(135deg, #ff3c00, #ff7a00);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        font-weight: 900;
    }




/* 🔥 Pulse Animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 60, 0, 0.6);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(255, 60, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 60, 0, 0);
    }
}




    #appLoader {
        position: fixed;
        inset: 0;
        background: #0a0a0a;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 9999;
    }

    .loader-logo {
        font-size: 32px;
        font-weight: 800;
        background: linear-gradient(135deg,#ff3c00,#ff7a00);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: pulse 1.2s infinite;
    }

    .loader-logop {
        font-size: 32px;
        font-weight: 800;
        background: white;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: pulse 1.2s infinite;
    }

    @keyframes pulse {
        0% {
            opacity: 0.4;
        }

        50% {
            opacity: 1;
        }

        100% {
            opacity: 0.4;
        }
    }
    /* CARD */
    .card-dark {
        background: rgba(255,255,255,0.03);
        border-radius: 20px;
        border: 1px solid rgba(255,255,255,0.05);
        backdrop-filter: blur(10px);
    }
    /* INPUT */
    .form-control {
        background: rgba(255,255,255,0.05);
        border: none;
        color: #fff;
    }

        .form-control::placeholder {
            color: #777;
        }
    /* LABEL */
    .form-label {
        color: #aaa;
        font-size: 14px;
    }
    /* CHECKBOX */
    .form-check-label {
        color: #aaa;
    }
    /* ================= FORM BASE ================= */

    .form-group-custom {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
        /* LABEL */
        .form-group-custom label {
            margin-bottom: 6px;
            font-size: 13px;
            color: #aaa;
        }
    /* INPUT */
    .form-control {
        height: 48px;
        border-radius: 10px;
    }
    /* TEXTAREA */
    textarea.form-control {
        height: 120px;
        resize: vertical;
    }
    /* ================= GRID FIX ================= */
    /* сите колони да се порамнети */
    .row.g-4 > [class*="col-"] {
        display: flex;
        align-items: flex-start;
    }
    /* ================= SERVICES ================= */
    /* ВАЖНО: НЕ flex тука ❌ */
    #servicesContainer {
        width: 100%;
    }
    /* секој service */
    .service-col {
        display: flex;
    }
    /* input + delete */
    .input-with-action {
        display: flex;
        gap: 10px;
        width: 100%;
    }
        /* input */
        .input-with-action input {
            flex: 1;
            height: 50px;
            padding: 10px 14px;
        }
        /* delete button */
        .input-with-action button {
            min-width: 50px;
            height: 50px;
            border-radius: 10px;
        }
    /* ================= BUTTON ================= */

    .btn-outline-light {
        border-radius: 10px;
    }
    /* ================= OPTIONAL POLISH ================= */

    .card-dark {
        border-radius: 20px;
    }

    .btn-main {
        border-radius: 12px;
    }

.install-success {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.install-success-box {
    background: #fff;
    padding: 20px;
    border-radius: 14px;
    text-align: center;
    max-width: 300px;
    width: 90%;
}

    .install-success-box h5 {
        margin-bottom: 10px;
    }

    .install-success-box button {
        margin-top: 10px;
        padding: 8px 16px;
        border: none;
        background: #ff3c00;
        color: white;
        border-radius: 8px;
    }



/* INSTALL BUTTON */
.install-container {
    margin-top: 25px;
    text-align: center;
}

.install-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ff3c00, #ff7a00);
    border: none;
    color: #fff;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
    cursor: pointer;
    transition: all 0.2s ease;
    display: none;
}

    .install-btn:active {
        transform: scale(0.95);
    }

/* TOAST */
.install-toast {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #222;
    color: #fff;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 9999;
}

    .install-toast.show {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }




.modern-card {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transition: all 0.25s ease;
    position: relative;
}

    .modern-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 28px rgba(0,0,0,0.12);
    }

.modern-img-wrapper {
    position: relative;
    height: 180px;
    overflow: hidden;
}

    .modern-img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.modern-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(90deg,#2798F5,#949799);
    color: #fff;
    padding: 4px 10px;
    font-size: 0.7rem;
    border-radius: 1rem;
}

.modern-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

    .modern-body h5 {
        font-weight: 600;
        margin-bottom: 6px;
    }

.modern-category {
    font-size: 0.75rem;
    background: #f1f3f5;
    padding: 4px 8px;
    border-radius: 0.5rem;
    width: fit-content;
    margin-bottom: 10px;
}

.modern-desc {
    font-size: 0.9rem;
    color: #666;
    flex-grow: 1;
    margin-bottom: 12px;
}

.modern-footer {
    font-size: 0.8rem;
    color: #888;
}


/* Floating Social Icons */
.floating-social {
    position: fixed;
    top: 50%;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transform: translateY(-50%);
}

    .floating-social a {
        background: rgba(0, 0, 0, 0.252);
        backdrop-filter: blur(10px);
        border-radius: 50%;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        width: 52px;
        height: 52px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        border: 1.5px solid rgba(255, 255, 255, 0.5);
    }

        .floating-social a:hover {
            background: linear-gradient(90deg, #2798F5, #949799 80%);
            box-shadow: 0 6px 20px rgba(206, 32, 40, 0.5);
            border-color: #fff;
            transform: translateY(-3px) scale(1.05);
        }

    .floating-social img {
        width: 24px;
        height: 24px;
        display: block;
        filter: brightness(0) invert(1);
    }

.social-follow a {
    margin-right: 0.5rem;
}

@media (max-width: 991px) {
    .floating-social {
        right: 8px;
        top: unset;
        bottom: 24px;
        flex-direction: row;
        transform: none;
    }
}






/* ===== CATEGORY SECTION ===== */
.category-grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 30px;
    justify-items: center;
    align-items: start;
}

/* ===== CATEGORY ITEM ===== */
.category-item {
    text-align: center;
    text-decoration: none;
    color: #fff;
    transition: all 0.25s ease;
    max-width: 120px;
}

.category-item:hover {
    transform: translateY(-6px) scale(1.03);
}

/* ===== ICON CIRCLE ===== */
.category-icon {
    width: 50px; /* беше 75px */
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff3c00, #ff7a00);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-size: 20px;
    box-shadow: 0 8px 18px rgba(255,60,0,0.3);
    transition: all 0.3s ease;
}

.category-item:hover .category-icon {
    transform: scale(1.1);
    box-shadow: 0 12px 25px rgba(255,60,0,0.5);
}

/* ===== TEXT ===== */
.category-item span {
    display: block;
    font-size: 13px;
    color: #ccc;
    line-height: 1.3;
}

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

/* Large tablet */
@media (max-width: 1200px) {
    .category-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Tablet */
@media (max-width: 900px) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
    }
}



@media (max-width: 600px) {
    .category-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px;
        box-sizing: border-box;
    }

    .category-item {
        max-width: 100%;
    }

    .category-icon {
        width: 50px;
        height: 50px;
        font-size: 14px;
    }

    .category-item span {
        font-size: 9px;
        line-height: 1.2;
        word-break: break-word; /* FIX текст */
    }
}