@import url('style_global.css');
body {background-color: #0b0f19;color: #ffffff;}

/* Избутва футъра винаги най-долу */
main.portal-container {
    flex: 1 0 auto;
    display: flex;
    width: 100%;
    height: 100vh;
    transition: all 0.5s ease;
}

/* ==========================================================================
   ХЕДЪР И ЛОГО
   ========================================================================== */
header {background: linear-gradient(to bottom, rgba(11,15,25,0.9), rgba(11,15,25,0));}
.logo {color: #ffffff;}
.logo span {color: #38bdf8;}

/* ==========================================================================
   АРХИТЕКТУРА НА ТРИТЕ КОЛОНИ (ЗА ДЕСКТОП)
   ========================================================================== */
.column {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    text-align: center;
    text-decoration: none;
    color: white;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    overflow: hidden;
}

/* Тематични фонове */
.col-web {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    border-right: 1px solid rgba(255,255,255,0.05);
}
.col-appraisal {
    background: linear-gradient(135deg, #0a2540 0%, #004e92 100%);
    border-right: 1px solid rgba(255,255,255,0.05);
}
.col-realestate {
    background: linear-gradient(135deg, #142820 0%, #2c4c38 100%);
}

/* Затъмняващ филтър по подразбиране */
.column::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(11, 15, 25, 0.3);
    transition: background 0.5s ease;
    z-index: 1;
}

.column-content {
    position: relative;
    z-index: 2;
    max-width: 360px;
    transform: translateY(20px);
    transition: transform 0.5s ease;
}

.icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    opacity: 0.8;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 1px;
}
p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
    font-weight: 300;
}

.experience-badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 5px 14px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.cta-btn {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: transparent;
    color: #ffffff;
    transition: all 0.3s ease;
}

/* HOVER АНИМАЦИИ (САМО ЗА КОМПЮТРИ) */
@media (min-width: 769px) {
    .portal-container:hover .column:not(:hover) {
        flex: 0.7;
        opacity: 0.4;
    }
    .portal-container .column:hover {
        flex: 1.5;
    }
    .portal-container .column:hover::before {
        background: rgba(11, 15, 25, 0);
    }
    .portal-container .column:hover .column-content {
        transform: translateY(0);
    }
    .portal-container .column:hover .icon {
        transform: scale(1.15);
        opacity: 1;
    }
    .col-web:hover .cta-btn { background: #38bdf8; border-color: #38bdf8; color: #0f172a; }
    .col-appraisal:hover .cta-btn { background: #ffffff; border-color: #ffffff; color: #0a2540; }
    .col-realestate:hover .cta-btn { background: #ffffff; border-color: #ffffff; color: #142820; }
}
/* ==========================================================================
   БУТОН НАГОРЕ (BACK TO TOP)
   ========================================================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #004e92;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.back-to-top.show {
    opacity: 1;
    pointer-events: auto;
}
.back-to-top:hover {
    background-color: #0a2540;
    transform: translateY(-3px);
}
/* ==========================================================================
   ФУТЪР
   ========================================================================== */
footer {
    background-color: #070a12;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 0.9rem;
    color: #64748b;
}
.footer-info {
    margin-bottom: 20px;
}
.footer-info a {
    margin: 0 15px;
    color: #94a3b8;
    transition: color 0.3s ease;
}
.footer-info a:hover {
    color: #38bdf8;
}

/* ФИКС ЗА МОБИЛНИ БРАУЗЪРИ: Спира насилственото посиняване на линковете */
.contact-item, 
.footer-contacts a, 
footer a[href^="tel:"], 
footer a[href^="mailto:"] {
    align-items: center;
	text-align: center;
    gap: 8px;
    font-size: 0.9rem;
    text-decoration: none !important;
    transition: color 0.3s ease;
}
.footer-contacts a:hover {
    color: #38bdf8 !important;
}
.contact-icon {
    font-size: 1.1rem;
}
.copyright {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   КРИТИЧНА МОБИЛНА ВЕРСИЯ (ЕКРАНИ ПОД 768PX)
   ========================================================================== */
@media (max-width: 768px) {
    body {
        height: auto;
        overflow-y: auto;
    }
    header {
        position: relative;
        background: #0b0f19;
        padding: 25px 15px;
    }
    .logo {
        font-size: 1.5rem;
    }
    
    main.portal-container {
        flex-direction: column;
        height: auto;
    }
    .column {
        width: 100%;
        min-height: auto;
        padding: 60px 20px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    .column-content {
        transform: translateY(0);
        max-width: 100%;
    }
    .icon {
        font-size: 2.8rem;
        margin-bottom: 15px;
    }
    h2 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    p {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }
    
    .cta-btn {
        width: 100%;
        max-width: 320px;
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.3);
        padding: 14px 20px;
        border-radius: 8px;
    }
    
    footer {
        position: relative;
        padding: 30px 20px;
    }
    .footer-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .footer-contacts {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        width: 100%;
    }
    .contact-item, .footer-contacts a {
        width: 100%;
        justify-content: center;
        font-size: 0.95rem;
    }
}

/* ==========================================================================
   СТИЛОВЕ ЗА СДПО / GDPR БАНЕРА
   ========================================================================== */
.gdpr-banner {
    position: fixed;
    bottom: -150px;
    left: 0;
    width: 100%;
    background-color: #111827;
    color: #ffffff;
    padding: 15px 20px;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    transition: bottom 0.4s ease;
    border-top: 1px solid rgba(56, 189, 248, 0.2);
}
.gdpr-banner.show {
    bottom: 0;
}
.gdpr-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.gdpr-container p {
    font-size: 0.9rem;
    line-height: 1.4;
}
.gdpr-container a {
    color: #38bdf8;
    text-decoration: underline;
}
.gdpr-btn {
    background-color: #38bdf8;
    color: #0f172a;
    border: none;
    padding: 8px 20px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
}
@media (max-width: 768px) {
    .gdpr-container { flex-direction: column; text-align: center; }
    .gdpr-btn { width: 100%; }
}
