/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%), url('assets/hero-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Language Toggle */
.language-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
}

.lang-btn {
    background: #2c5aa0;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
}

.lang-btn:hover {
    background: #1e3f73;
}

/* Tooltip Styles */
.tooltip-text {
    position: relative;
    cursor: help;
    text-decoration: underline;
    text-decoration-style: dotted;
}

.tooltip-text::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(44, 90, 160, 0.95);
    color: white;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    line-height: 1.4;
    white-space: normal;
    width: 320px;
    max-width: 90vw;
    text-align: left;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-5px);
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: none;
}

.tooltip-text::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(44, 90, 160, 0.95);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.tooltip-text:hover::after,
.tooltip-text:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
    .tooltip-text::after {
        width: 280px;
        font-size: 0.8rem;
        padding: 10px 14px;
    }
}

/* Navigation */
.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 70px;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #2c5aa0;
}

.logo {
    height: 40px;
    width: auto;
    margin-right: 10px;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2596be;
    font-family: 'Roman SD', 'Trajan Pro', 'Romana', 'Times New Roman', serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    font-family: 'Roman SD', 'Trajan Pro', 'Romana', 'Times New Roman', serif;
    letter-spacing: 0.3px;
}

.nav-link:hover {
    color: #2c5aa0;
}

/* Bulgarian language navigation font size adjustment */
html[lang="bg"] .nav-link {
    font-size: 1.1rem;
    font-family: 'Roman SD', 'Trajan Pro', 'Romana', 'Times New Roman', serif !important;
    font-weight: 500;
    font-display: swap;
}

/* Ensure font loads for Bulgarian text */
html[lang="bg"] .nav-link,
html[lang="bg"] h1,
html[lang="bg"] h2,
html[lang="bg"] h3,
html[lang="bg"] .hero-title {
    font-family: 'Roman SD', 'Trajan Pro', 'Romana', 'Times New Roman', serif !important;
    font-display: swap;
}

/* English language navigation font size adjustment */
html[lang="en"] .nav-link {
    font-size: 0.9rem;
}

/* Dropdown Styles */
.dropdown-toggle::after {
    content: '▼';
    margin-left: 0.5rem;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #333;
    text-decoration: none;
    font-weight: 400;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-link:hover {
    background-color: #f8f9fa;
    color: #2c5aa0;
}

.dropdown-menu li:last-child .dropdown-link {
    border-bottom: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #2c5aa0;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #2c5aa0;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 1px;
}

/* Hero Section */
.hero {
    padding: 0;
    background: linear-gradient(135deg, rgba(44, 90, 160, 0.1) 0%, rgba(30, 63, 115, 0.1) 100%);
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Video Background Styles */
.hero-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 90, 160, 0.7) 0%, rgba(30, 63, 115, 0.6) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
    padding-bottom: 20px;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    line-height: 1.6;
    text-align: center;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 1px 1px 4px rgba(0, 0, 0, 0.9);
    background: rgba(0, 0, 0, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    backdrop-filter: blur(1px);
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.hero-buttons-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-buttons-row .btn {
    flex: 1;
    min-width: 150px;
    max-width: 200px;
    width: 200px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-buttons .btn {
    min-width: 150px;
    text-align: center;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #2c5aa0;
    color: white;
}

.btn-primary:hover {
    background: #1e3f73;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #2c5aa0;
    border: 2px solid #2c5aa0;
}

.btn-secondary:hover {
    background: #2c5aa0;
    color: white;
    transform: translateY(-2px);
}

.hero-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    min-height: 300px;
    object-fit: cover;
}

/* Hero image styling */
.hero-image {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.hero-img:hover {
    transform: scale(1.05);
}

/* Fallback for when image is not available */
.hero-image:not(:has(.hero-img)) {
    background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
}

.hero-image:not(:has(.hero-img))::before {
    content: "📊";
    font-size: 4rem;
    color: #2c5aa0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-image:not(:has(.hero-img))::after {
    content: "Professional Auditing Services";
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #6c757d;
    font-weight: 500;
    font-size: 1.1rem;
}

/* Bulgarian translations for hero image placeholder */
html[lang="bg"] .hero-image:not(:has(.hero-img))::after {
    content: "Професионални одиторски услуги";
}

/* Sections */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c5aa0;
    margin-bottom: 1rem;
    font-family: 'Roman SD', 'Trajan Pro', 'Romana', 'Times New Roman', serif;
    letter-spacing: 0.5px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    max-width: 800px;
    margin: 0 auto;
}

/* About Section */
.about {
    background: #fff;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #555;
    line-height: 1.7;
    text-align: center;
}

.features {
    display: grid;
    gap: 1.5rem;
}

.feature h3 {
    color: #2c5aa0;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
}

.feature p {
    color: #666;
    font-size: 1rem !important;
    margin-bottom: 0 !important;
    line-height: 1.6;
    text-align: left;
}

.about-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    min-height: 250px;
    object-fit: cover;
}

/* About image styling */
.about-image {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
    min-height: 400px;
}

.about-img:hover {
    transform: scale(1.02);
}

/* Fallback for when image is not available */
.about-image:not(:has(.about-img)) {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.about-image:not(:has(.about-img))::before {
    content: "👥";
    font-size: 3rem;
    color: #2c5aa0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.about-image:not(:has(.about-img))::after {
    content: "Our Professional Team";
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #6c757d;
    font-weight: 500;
    font-size: 1rem;
}

/* Bulgarian translations for about image placeholder */
html[lang="bg"] .about-image:not(:has(.about-img))::after {
    content: "Нашият професионален екип";
}

/* Services Section */
.services {
    background: #f8f9fa;
}

.accounting-bg {
    background: #fff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Audit Services Grid - 2 columns per row */
.audit-services-grid {
    grid-template-columns: repeat(2, 1fr);
}

/* FAQ Grid - 4 columns per row */
.faq-grid {
    grid-template-columns: repeat(4, 1fr);
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.service-card.clickable {
    cursor: pointer;
    position: relative;
}

.service-card.clickable:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(44, 90, 160, 0.2);
}

.service-arrow {
    margin-top: 1.5rem;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    background: #2c5aa0;
    color: white;
}

.service-card.clickable:hover .service-arrow {
    background: #1e3f73;
    transform: translateY(-2px);
}

.service-arrow::after {
    content: " →";
    transition: transform 0.3s ease;
}

.service-card.clickable:hover .service-arrow::after {
    transform: translateX(3px);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: #2c5aa0;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

/* FAQ Grid specific styling for consistent h3 appearance */
.faq-grid .service-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.3;
    min-height: 3.5rem;
    display: flex;
    align-items: center;
}

.service-card p {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

.service-card .service-list {
    color: #666;
    line-height: 1.6;
    padding-left: 1.2rem;
    margin: 0;
    text-align: left;
}

.service-card .service-list li {
    margin-bottom: 0.5rem;
    list-style-type: disc;
}

.service-card .service-list li:last-child {
    margin-bottom: 0;
}

.service-card .audit-list {
    color: #666;
    line-height: 1.6;
    padding-left: 1.2rem;
    margin: 0;
    text-align: justify;
}

.service-card .audit-list li {
    margin-bottom: 0.8rem;
    list-style-type: disc;
    text-align: justify;
}

.service-card .audit-list li:last-child {
    margin-bottom: 0;
}

/* Visit button for service cards */
.visit-button {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 10px 20px;
    background: #2c5aa0;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid #2c5aa0;
}

.visit-button:hover {
    background: #1e3f73;
    border-color: #1e3f73;
    transform: translateY(-2px);
    color: white;
}

/* Anchor spans for navigation - adjust scroll position */
#esg-text, #other-text {
    display: block;
    position: relative;
    top: -80px; /* Offset for header */
    visibility: hidden;
    height: 0;
}

/* Better positioning for anchor targets */
.anchor-target {
    position: absolute;
    top: -80px;
    left: 0;
    width: 0;
    height: 0;
    visibility: hidden;
}

/* Articles Section */
.articles {
    background: #fff;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.article-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
}

.article-image {
    height: 200px;
    overflow: hidden;
}

.article-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Placeholder for missing article images */
.article-image {
    position: relative;
    background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hide broken article images */
.article-img[src^="assets/article"] {
    display: none;
}

.article-card:hover .article-img {
    transform: scale(1.05);
}

.article-content {
    padding: 1.5rem;
}

.article-content h3 {
    color: #2c5aa0;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.article-content p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 1rem;
}

.article-link {
    color: #2c5aa0;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.article-link:hover {
    color: #1e3f73;
}

/* Contact Section */
.contact {
    background: #f8f9fa;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.contact-details h3 {
    color: #2c5aa0;
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: #666;
}

.contact-map {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.contact-map h3 {
    color: #2c5aa0;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.map-container {
    margin-bottom: 1.5rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

.map-info {
    text-align: center;
    padding: 1rem;
}

.map-info p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2c5aa0;
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
.footer {
    background: #2c5aa0;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section p {
    color: #b8d4f0;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #b8d4f0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #4a6fa5;
    padding-top: 1rem;
    text-align: center;
    color: #b8d4f0;
}

/* Tablet Responsive Design */
@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .audit-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    #overview .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .language-toggle {
        top: 20px;
        right: 70px;
        z-index: 1001;
    }

    .hamburger {
        display: flex;
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 1001;
    }

    /* Make company name smaller on mobile */
    .brand-text {
        font-size: 1.1rem;
        letter-spacing: 0.3px;
    }

    .logo {
        height: 32px;
        margin-right: 8px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: left;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 1rem 0;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 0.5rem 0;
        padding: 0 2rem !important;
    }

    .nav-menu .nav-link {
        padding: 0.6rem 0 !important;
        display: block;
        font-weight: 500;
        margin-left: 0 !important;
        padding-left: 0 !important;
        text-align: left;
    }

    /* Ensure dropdown links are also properly indented */
    .nav-menu .dropdown-link {
        padding: 0.4rem 1rem !important;
        margin-left: 1rem !important;
        font-size: 0.9rem;
    }

    /* Mobile dropdown styles */
    .dropdown-menu {
        position: static;
        box-shadow: none;
        background: #f8f9fa;
        margin-top: 0.25rem;
        margin-bottom: 0.25rem;
        margin-left: 1rem;
        border-radius: 0;
        transform: none;
        opacity: 1;
        visibility: visible;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .dropdown.active .dropdown-menu {
        max-height: 200px;
    }

    .dropdown-toggle::after {
        margin-left: auto;
    }

    .dropdown.active .dropdown-menu {
        max-height: 300px;
    }

    .dropdown-toggle::after {
        margin-left: auto;
    }

    .dropdown-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-content {
        padding-bottom: 60px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    /* Mobile video background optimizations */
    .hero-video {
        /* On mobile, maintain aspect ratio and quality */
        object-fit: cover;
        object-position: center;
    }

    .hero-video-overlay {
        /* Slightly stronger overlay on mobile for better text readability */
        background: linear-gradient(135deg, rgba(44, 90, 160, 0.8) 0%, rgba(30, 63, 115, 0.7) 100%);
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .audit-services-grid {
        grid-template-columns: 1fr;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    #overview .services-grid {
        grid-template-columns: 1fr;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-buttons {
        align-items: center;
        gap: 1rem;
    }

    .hero-buttons-row {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 100%;
    }

    .hero-buttons-row .btn {
        width: 100%;
        max-width: 280px;
        min-width: 280px;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }

    .section-title {
        font-size: 2rem;
    }

    .container {
        padding: 0 15px;
    }

    .map-container iframe {
        height: 300px;
    }

    .contact-map {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .service-card,
    .contact-form {
        padding: 1.5rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

/* Bookkeeping Page Styles */
.breadcrumb {
    background: #f8f9fa;
    padding: 1rem 0;
    margin-top: 70px;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.breadcrumb-nav a {
    color: #2c5aa0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-nav a:hover {
    color: #1e3f73;
}

.breadcrumb-nav .separator {
    margin: 0 0.5rem;
    color: #666;
}

.breadcrumb-nav .current {
    color: #666;
}

.page-hero {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3f73 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Remove background for video hero sections */
.page-hero-video {
    background: none !important;
    height: 100vh; /* Match bookkeeping page - full viewport height */
    padding: 0; /* Match bookkeeping page - no padding */
    display: flex;
    flex-direction: column;
}

.page-hero-video .hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
    padding-bottom: 20px;
    text-align: center;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.page-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.bookkeeping-services {
    padding: 4rem 0;
}

.services-detailed {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.service-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.service-detail.reverse {
    direction: rtl;
}

.service-detail.reverse > * {
    direction: ltr;
}

.service-image {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-image:hover .service-img {
    transform: scale(1.05);
}

.service-content h3 {
    font-size: 1.5rem;
    color: #2c5aa0;
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #333;
}

.service-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #2c5aa0;
    font-weight: bold;
}

.why-choose-us {
    background: #f8f9fa;
    padding: 4rem 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* Tablet responsive for benefits grid */
@media (max-width: 900px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

.benefit-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.benefit-card h3 {
    color: #2c5aa0;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.benefit-card p {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

.cta-section {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3f73 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Placeholder images for services */
.service-image::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3f73 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: 500;
    z-index: 1;
}

.service-detail:nth-child(1) .service-image::after {
    content: "VAT Declarations";
}

.service-detail:nth-child(2) .service-image::after {
    content: "VAT Reimbursement";
}

.service-detail:nth-child(3) .service-image::after {
    content: "Employment Records";
}

.service-detail:nth-child(4) .service-image::after {
    content: "Payroll Management";
}

.service-detail:nth-child(5) .service-image::after {
    content: "Accounting Operations";
}

.service-detail:nth-child(6) .service-image::after {
    content: "Tax Returns";
}

.service-detail:nth-child(7) .service-image::after {
    content: "Financial Accounting";
}

/* Bulgarian language placeholder content */
html[lang="bg"] .service-detail:nth-child(1) .service-image::after {
    content: "ДДС Декларации";
}

html[lang="bg"] .service-detail:nth-child(2) .service-image::after {
    content: "Възстановяване на ДДС";
}

html[lang="bg"] .service-detail:nth-child(3) .service-image::after {
    content: "ТРЗ";
}

html[lang="bg"] .service-detail:nth-child(4) .service-image::after {
    content: "Администриране на заплати";
}

html[lang="bg"] .service-detail:nth-child(5) .service-image::after {
    content: "Текущо счетоводно отчитане";
}

html[lang="bg"] .service-detail:nth-child(6) .service-image::after {
    content: "Данъчни декларации";
}

html[lang="bg"] .service-detail:nth-child(7) .service-image::after {
    content: "Финансово счетоводство";
}

/* Service Icon Styling */
.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
}

/* Contact Icon Styling */
.contact-icon {
    font-size: 2rem;
    margin-right: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background: #2c5aa0;
    border-radius: 50%;
    color: white;
    flex-shrink: 0;
}

/* Benefit Icon Styling */
.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
}

/* Additional mobile styles for bookkeeping page */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .page-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .service-detail {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-detail.reverse {
        direction: ltr;
    }
    
    .service-image {
        order: -1;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-2 {
    margin-top: 2rem;
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Smooth scrolling offset for fixed navbar */
section {
    scroll-margin-top: 70px;
}

/* Go to Top Button */
.go-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #2c5aa0;
    color: white;
    border: none;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.go-to-top i {
    font-weight: 600;
    line-height: 1;
}

.go-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.go-to-top:hover {
    background: #1e3f73;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(44, 90, 160, 0.4);
}

.go-to-top:active {
    transform: translateY(-1px);
}

/* Responsive adjustments for go to top button */
@media (max-width: 768px) {
    .go-to-top {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
}
