:root {
    /* Premium palette */
    --primary-color: #0f1b2d; /* deep navy */
    --secondary-color: #1b2a44;
    --accent-color: #c8a24a; /* muted gold */
    --accent-gradient: linear-gradient(135deg, #d6b15a 0%, #b88b2f 100%);

    --yellow: #c8a24a;
    --red: #c0392b;
    --blue: #2b6cb0;
    --purple: #6b46c1;

    --text-color: #1c2533;
    --muted-text: rgba(28, 37, 51, 0.72);
    --light-bg: #f6f7fb;
    --white: #ffffff;

    --shadow: 0 10px 30px rgba(15, 27, 45, 0.10);
    --shadow-sm: 0 4px 14px rgba(15, 27, 45, 0.10);
    --transition: all 0.28s cubic-bezier(.4,0,.2,1);
    --radius-lg: 18px;
    --radius-md: 12px;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
    letter-spacing: 0.1px;
}

/* Fixed-top navbar offset */
main.container {
    padding-top: 96px;
}

/* Навигация */
.navbar {
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid rgba(15, 27, 45, 0.06);
    padding: 0.85rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.55rem 0;
    background: rgba(255, 255, 255, 0.94) !important;
    box-shadow: var(--shadow);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.logo {
    max-height: 48px;
    width: auto;
    display: block;
    margin-right: 1.2rem;
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    line-height: 1.05;
    max-width: 180px;
}

.brand-text span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Arial', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

.brand-text span:last-child {
    font-size: 0.8rem;
    color: rgba(200, 162, 74, 0.95);
    font-weight: 400;
    letter-spacing: 1px;
}

.nav-link {
    color: var(--primary-color) !important;
    font-weight: 600;
    position: relative;
    padding: 0.55rem 0.95rem;
    transition: var(--transition);
    margin: 0 0.2rem;
    border-radius: 10px;
}

.nav-link i {
    margin-right: 0.5rem;
    color: var(--accent-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--primary-color) !important;
    background: rgba(15, 27, 45, 0.04);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-color) !important;
    background: rgba(200, 162, 74, 0.12);
}

.nav-link.active::after {
    width: 100%;
}

.dropdown-menu {
    min-width: 160px;
    padding: 0.5rem 0;
    margin: 0;
    border: none;
    border-radius: 14px;
    box-shadow: var(--shadow);
    background-color: var(--white);
    overflow: hidden;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    color: var(--text-color);
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: rgba(15, 27, 45, 0.05);
    color: var(--primary-color);
}

.dropdown-item.active {
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--accent-color);
}

.dropdown-item img {
    margin-right: 8px;
}

/* Бутони */
.btn {
    border-radius: 999px;
    padding: 0.6rem 1.35rem;
    transition: var(--transition);
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.6px;
}

.btn-primary {
    background: var(--accent-gradient);
    border: none;
    box-shadow: 0 10px 22px rgba(200, 162, 74, 0.20);
}

.btn-primary:hover {
    filter: brightness(1.02);
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 14px 30px rgba(200, 162, 74, 0.26);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: rgba(15, 27, 45, 0.26);
    background: rgba(255, 255, 255, 0.7);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Карти */
.card {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: none;
    background: #fff;
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-6px);
}

.card-title {
    color: var(--primary-color);
    font-weight: 700;
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Секции */
.hero-section {
    background: var(--accent-gradient);
    color: var(--white);
    padding: 5rem 0 3rem 0;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 28px 28px;
    box-shadow: var(--shadow);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/pattern.png');
    opacity: 0.08;
    animation: slideIn 1s ease;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.services-section {
    padding: 5rem 0;
}

.about-section {
    background-color: var(--white);
    padding: 5rem 0;
}

/* Футър */
.footer {
    background: radial-gradient(1200px 420px at 20% -10%, rgba(200, 162, 74, 0.22), transparent 60%),
                linear-gradient(135deg, #0f1b2d 0%, #0b1322 100%);
    color: #fff;
    padding: 4rem 0 1.5rem 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/pattern.png');
    opacity: 0.05;
    pointer-events: none;
}

.footer-title {
    color: rgba(200, 162, 74, 0.98);
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
}

.footer-section:hover .footer-title::after {
    width: 100px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.9);
    transition: transform 0.3s ease, color 0.3s ease;
}

.footer-links li:hover {
    transform: translateX(5px);
    color: #FFD700;
}

.footer-links li i {
    color: #FFD700;
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #FFD700;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #FFD700;
    color: #1a1a1a;
    transform: translateY(-3px);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-bottom .footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-bottom .footer-link:hover {
    color: #FFD700;
}

@media (max-width: 768px) {
    .footer {
        text-align: center;
        padding: 3rem 0 1rem 0;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links li {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-bottom {
        text-align: center;
    }
    
    .footer-bottom .text-md-end {
        text-align: center !important;
        margin-top: 1rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-brand {
        gap: 0.4rem;
    }
    
    .brand-text {
        max-width: 110px;
    }
    .logo {
        max-height: 26px;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .services-section,
    .about-section {
        padding: 3rem 0;
    }
    
    footer {
        text-align: center;
        padding: 2rem 0 1rem 0;
    }
    
    footer .footer-section {
        margin-bottom: 1.2rem;
    }
    
    .brand-text span {
        font-size: 0.8rem;
    }
    .brand-text span:last-child {
        font-size: 0.7rem;
    }
    footer .social-links a {
        margin-right: 0.5rem;
    }
}

/* Форми */
.form-control {
    border-radius: 4px;
    border: 1px solid #ddd;
    padding: 0.75rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(57, 73, 171, 0.25);
}

/* Зареждащи анимации */
.fade-in {
    animation: fadeIn 0.5s ease;
}

.slide-in {
    animation: slideIn 0.5s ease;
}

/* Допълнителни стилове за специфични елементи */
.service-card {
    background: var(--white);
    border-radius: 1.2rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    box-shadow: 0 8px 32px rgba(44,62,80,0.13);
    transform: translateY(-6px) scale(1.03);
}

.service-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.team-section {
    background: linear-gradient(120deg, #e0e7ff 60%, #f8e0ff 100%);
    padding: 5rem 0;
}

.team-member {
    text-align: center;
    margin-bottom: 2rem;
}

.team-member img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    border: 3px solid var(--accent-color);
    transition: var(--transition);
}

.team-member:hover img {
    transform: scale(1.05);
}

.team-member h4 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.team-member p {
    color: var(--text-color);
    font-style: italic;
}

.contact-section {
    padding: 5rem 0;
    background: linear-gradient(120deg, #e0fff8 60%, #e0f7ff 100%);
}

.contact-info {
    background: var(--white);
    padding: 2rem;
    border-radius: 1.2rem;
    box-shadow: var(--shadow);
}

.contact-info i {
    color: var(--accent-color);
    margin-right: 1rem;
    font-size: 1.5rem;
}

/* Стилове за езикови бутони */
.language-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-btn {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    color: var(--text-color);
    text-decoration: none;
    border: none;
    background: transparent;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.language-btn:hover {
    color: var(--accent-color);
    background-color: rgba(52, 152, 219, 0.1);
}

.language-btn.active {
    color: var(--accent-color);
    background-color: rgba(52, 152, 219, 0.1);
}

.flag-icon {
    width: 20px;
    height: 15px;
    margin-right: 4px;
    object-fit: cover;
    border-radius: 2px;
}

/* Subtle focus style for accessibility */
a:focus-visible,
button:focus-visible,
.nav-link:focus-visible,
.dropdown-item:focus-visible {
    outline: 3px solid rgba(200, 162, 74, 0.45);
    outline-offset: 2px;
}

/* Медия заявки за мобилни устройства */
@media (max-width: 768px) {
    .navbar-collapse {
        background-color: var(--white);
        padding: 1rem;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        margin-top: 1rem;
    }

    .nav-link {
        padding: 0.8rem 1rem;
        border-radius: 4px;
    }

    .nav-link:hover {
        background-color: var(--light-bg);
    }

    .language-buttons {
        gap: 0.25rem;
    }
    
    .language-btn {
        padding: 0.25rem;
    }
    
    .language-btn span {
        display: none;
    }
    
    .flag-icon {
        margin-right: 0;
    }
    
    .dropdown-menu {
        position: fixed !important;
        top: auto !important;
        left: 0 !important;
        right: 0 !important;
        width: 100%;
        border-radius: 0;
        margin-top: 0.5rem;
    }
}

/* Допълнителни цветни икони */
.card i, .service-icon, .footer-links li i, .nav-link i {
    color: var(--yellow) !important;
    filter: drop-shadow(0 1px 2px #00b89433);
}

/* Още по-цветни секции */
.team-section {
    background: linear-gradient(120deg, #e0e7ff 60%, #f8e0ff 100%);
}

.contact-section {
    background: linear-gradient(120deg, #e0fff8 60%, #e0f7ff 100%);
}

/* Модерен футър (допълнително) */
.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2ecc40 100%);
    color: #fff;
}

.section-title {
    color: var(--blue);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 2rem;
    letter-spacing: 1px;
    text-align: center;
}

.bg-light, .about-section, .services-section, .contact-section {
    background: linear-gradient(120deg, #f8fff8 60%, #e0ffe0 100%);
}

.list-unstyled li, .card-text, .about-section p, .contact-info p {
    color: #34495e;
    font-size: 1.08rem;
}

.hero-section .btn-primary, .hero-section .btn {
    position: relative;
    z-index: 10;
}

.dropdown-toggle, .dropdown-toggle * {
    pointer-events: auto !important;
    cursor: pointer;
}

/* Корекция за езиковия дропдаун да не е изместен нагоре */
.dropdown-menu-end[aria-labelledby="langDropdown"] {
    top: 100% !important;
    left: auto !important;
    right: 0 !important;
    margin-top: 0.5rem !important;
} 